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