Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr54669.c
blob48967ed5da2a9f7a523c02781b991a9bd89a1c19
1 /* PR tree-optimization/54669 */
2 /* Testcase by Zdenek Sojka <zsojka@seznam.cz> */
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
6 /* { dg-require-effective-target exceptions } */
8 int a[10];
10 void
11 foo (void)
13 int x;
14 int i;
15 for (i = 0; i < 1;)
17 int b[3];
18 for (i = 0; i < 1; i++)
19 b[i] = a[i];
20 if (&x)
21 a[0] = b[0];