blob: bf2c7b1d3239adb81e4d5e38d4f32eef4b7754f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* Test -Wint-to-pointer-cast. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-Wint-to-pointer-cast" } */
char c;
void *
f (void)
{
return (void *) c; /* { dg-warning "10:cast to pointer from integer of different size" } */
}
|