[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / Wpointer-to-int-cast-1.c
blobff011c75d4af4e9fc5c5d13f63df432edae0cb86
1 /* Test -Wpointer-to-int-cast - on by default. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
6 void *p;
8 char
9 f (void)
11 return (char) p; /* { dg-warning "cast from pointer to integer of different size" } */