2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / Wpointer-to-int-cast-2.c
bloba8d97ea6d2a3c3d56a40e2a7d8faabc6e37bf439
1 /* Test -Wpointer-to-int-cast. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "-Wpointer-to-int-cast" } */
6 void *p;
8 char
9 f (void)
11 return (char) p; /* { dg-warning "warning: cast from pointer to integer of different size" } */