Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / Wpointer-to-int-cast-3.c
blob12bfd4284d47f4b9157240cbcdcf4d2d8025033c
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 "warning: cast to pointer from integer of different size" } */