Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49000.c
blob32a1cdb35f7cdf46bae2f18f67805e82f412e458
1 /* PR tree-optimization/49000 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -g" } */
5 static
6 foo (int x, int y)
8 return x * y;
11 static int
12 bar (int *z)
14 return *z;
17 void
18 baz (void)
20 int a = 42;
21 int *b = &a;
22 foo (bar (&a), 3);
25 void
26 test (void)
28 baz ();