1 /* PR tree-optimization/54669 */ 2 /* Testcase by Zdenek Sojka <zsojka@seznam.cz> */ 3 4 /* { dg-compile } */ 5 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */ 6 7 int a[10]; 8 9 void foo(void)10foo (void) 11 { 12 int x; 13 int i; 14 for (i = 0; i < 1;) 15 { 16 int b[3]; 17 for (i = 0; i < 1; i++) 18 b[i] = a[i]; 19 if (&x) 20 a[0] = b[0]; 21 } 22 } 23