Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-19.c
blobc121832de63c5c33312c83b1966034ccaa5c244f
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1" } */
4 struct a
6 union
8 int a;
9 int b;
11 union
13 int c;
14 int d;
16 int e;
19 int f(struct a *c)
21 int d;
22 c->e = 2;
23 d = c->a;
24 c->c = 1;
25 return c->a + d;
28 /* We should have CSEd the load from c->a. */
30 /* { dg-final { scan-tree-dump-times "c_.*\\\.a" 1 "fre1" } } */
31 /* { dg-final { cleanup-tree-dump "fre1" } } */