Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dce-4.c
blob261880cc240856012397e2cf8cf2fa08c28ff1a0
1 /* { dg-do compile } */
2 /* { dg-options "-O -fno-tree-fre -fdump-tree-cddce1" } */
4 int foo(int b)
6 int a[128];
7 a[b] = 1;
8 if (b)
10 b = 2;
11 a[2] = 0;
13 a[2] = 3;
14 return a[2] + b;
17 /* Verify DCE removes all accesses to a but the last store and the
18 read from a[2]. */
19 /* { dg-final { scan-tree-dump-times "a\\\[\[^\n\]\\\]" 2 "cddce1" } } */
20 /* { dg-final { cleanup-tree-dump "cddce1" } } */