assign-warn-3.c (f0): Declare as inline.
authorNathan Froyd <froydnj@codesourcery.com>
Thu, 26 Jul 2007 12:36:39 +0000 (12:36 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Thu, 26 Jul 2007 12:36:39 +0000 (12:36 +0000)
PR/19232
* gcc.dg/assign-warn-3.c (f0): Declare as inline.
(f1): Likewise.

From-SVN: r126955

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/assign-warn-3.c

index 99c96518ebdbbd5302f0786ce4d838d0f43b7dca..16e0a7e1ea53afd4a3416ff69306b96f75745c1e 100644 (file)
@@ -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:
index 86d1b3028f23118105eb63027346b6bce3a8e074..f415cc6a81095d75ec8d3d6142e6013a2f8e8c3c 100644 (file)
@@ -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" } */