Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / Wpointer-to-int-cast-3.c
blobc82ca5cf5fbc8efb26fec79200c2f68999ef7bac
1 /* Test -Wno-pointer-to-int-cast. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "-Wno-pointer-to-int-cast" } */
6 void *p;
8 char
9 f (void)
11 return (char) p;
15 char c;
17 void *
18 g (void)
20 return (void *) c; /* { dg-warning "cast to pointer from integer of different size" } */