diff options
| author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-26 12:36:39 +0000 |
|---|---|---|
| committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-26 12:36:39 +0000 |
| commit | 738303e046144585185134ffa4632b2ca0df87f8 (patch) | |
| tree | fdf1a2d8fd9b8e1af524a0757e2b2e9c265842ab | |
| parent | 6017c98f7473ae9d3c9b3c89a844572e76774c74 (diff) | |
| download | ppe42-gcc-738303e046144585185134ffa4632b2ca0df87f8.tar.gz ppe42-gcc-738303e046144585185134ffa4632b2ca0df87f8.zip | |
PR/19232
* gcc.dg/assign-warn-3.c (f0): Declare as inline.
(f1): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126955 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/assign-warn-3.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 99c96518ebd..16e0a7e1ea5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-07-26 Nathan Froyd <froydnj@codesourcery.com> + + PR/19232 + * gcc.dg/assign-warn-3.c (f0): Declare as inline. + (f1): Likewise. + 2007-07-26 Andreas Krebbel <krebbel1@de.ibm.com> * gcc.dg/20070725-1.c: Split the spare field in two to avoid: diff --git a/gcc/testsuite/gcc.dg/assign-warn-3.c b/gcc/testsuite/gcc.dg/assign-warn-3.c index 86d1b3028f2..f415cc6a810 100644 --- a/gcc/testsuite/gcc.dg/assign-warn-3.c +++ b/gcc/testsuite/gcc.dg/assign-warn-3.c @@ -5,9 +5,9 @@ /* { dg-options "-O3 -std=c99 -pedantic-errors" } */ /* This is valid to execute, so maybe shouldn't warn at all. */ -void f0(x) signed char *x; { } +inline void f0(x) signed char *x; { } void g0(unsigned char *x) { f0(x); } /* { dg-bogus "warning: pointer targets in passing argument 1 of 'f0' differ in signedness" } */ /* This is undefined on execution but still must compile. */ -void f1(x) int *x; { } +inline void f1(x) int *x; { } void g1(unsigned int *x) { f1(x); } /* { dg-bogus "warning: pointer targets in passing argument 1 of 'f1' differ in signedness" } */ |

