Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / assign-warn-3.c
blob1463fce0f68d31ac0a2eaf0afe39644eb66d159c
1 /* Test diagnostics for bad type conversion when inlining unprototyped
2 functions: should not be errors with -pedantic-errors. */
3 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
4 /* { dg-do compile } */
5 /* { dg-options "-O3 -std=c99 -pedantic-errors" } */
7 /* This is valid to execute, so maybe shouldn't warn at all. */
8 void f0(x) signed char *x; { }
9 void g0(unsigned char *x) { f0(x); } /* { dg-warning "warning: pointer targets in passing argument 1 of 'f0' differ in signedness" } */
11 /* This is undefined on execution but still must compile. */
12 void f1(x) int *x; { }
13 void g1(unsigned int *x) { f1(x); } /* { dg-warning "warning: pointer targets in passing argument 1 of 'f1' differ in signedness" } */