1 /* Test -Wpointer-to-int-cast - on by default.  */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
5 
6 void *p;
7 
8 char
f(void)9 f (void)
10 {
11   return (char) p; /* { dg-warning "cast from pointer to integer of different size" } */
12 }
13