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