OSDN Git Service

* gcc.dg/vect/vect-reduc-dot-s16b.c: Mark functions noinline.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / Wint-to-pointer-cast-1.c
1 /* Test -Wint-to-pointer-cast - on by default.  */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
5
6 char c;
7
8 void *
9 f (void)
10 {
11   return (void *) c; /* { dg-warning "cast to pointer from integer of different size" } */
12 }