[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr54669.c
blobb68c0476a4953d20b07b5d8f21eda6aaee2269dd
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" } */
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];