2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr54669.c
blob3868ae691dab4fbdedde4cb4256e63e57c8cc6bd
1 /* PR tree-optimization/54669 */
2 /* Testcase by Zdenek Sojka <zsojka@seznam.cz> */
4 /* { dg-compile } */
5 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
7 int a[10];
9 void
10 foo (void)
12 int x;
13 int i;
14 for (i = 0; i < 1;)
16 int b[3];
17 for (i = 0; i < 1; i++)
18 b[i] = a[i];
19 if (&x)
20 a[0] = b[0];