PR rtl-optimization/88018
[official-gcc.git] / gcc / testsuite / c-c++-common / Wint-to-pointer-cast-1.c
bloba7687a60758fb1e1afc16a24046522590ec986ac
1 /* Test -Wint-to-pointer-cast - on by default. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
6 char c;
8 void *
9 f (void)
11 return (void *) c; /* { dg-warning "cast to pointer from integer of different size" } */