Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / Wint-to-pointer-cast-3.c
blob457a53afedd925f96a3806ce6c59b0e69a604e2b
1 /* Test -Wno-int-to-pointer-cast. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "-Wno-int-to-pointer-cast" } */
6 char c;
8 void *
9 f (void)
11 return (void *) c;
14 void *p;
16 char
17 g (void)
19 return (char) p; /* { dg-warning "warning: cast from pointer to integer of different size" } */