Commit 5153cd4b by Nathan Froyd Committed by Nathan Froyd

assign-warn-3.c (f0): Declare as inline.

	PR/19232
	* gcc.dg/assign-warn-3.c (f0): Declare as inline.
	(f1): Likewise.

From-SVN: r126955
parent 1c387101
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> 2007-07-26 Andreas Krebbel <krebbel1@de.ibm.com>
* gcc.dg/20070725-1.c: Split the spare field in two to avoid: * gcc.dg/20070725-1.c: Split the spare field in two to avoid:
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
/* { dg-options "-O3 -std=c99 -pedantic-errors" } */ /* { dg-options "-O3 -std=c99 -pedantic-errors" } */
/* This is valid to execute, so maybe shouldn't warn at all. */ /* 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" } */ 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. */ /* 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" } */ void g1(unsigned int *x) { f1(x); } /* { dg-bogus "warning: pointer targets in passing argument 1 of 'f1' differ in signedness" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment