libstdc++: Fix test FAILs due to -Wreturn-local-addr
[official-gcc.git] / gcc / testsuite / gcc.dg / 20111216-1.c
blob7f9395e41e51bdf1f4fe330dc8ac9b816d0932c9
1 /* { dg-do compile } */
2 /* { dg-options "-O -fexceptions -fnon-call-exceptions" } */
3 /* { dg-require-effective-target exceptions } */
5 extern void f2 () __attribute__ ((noreturn));
6 void
7 f1 ()
9 unsigned char a[8];
10 unsigned int i;
12 for (i = 0; i < 8; i++)
14 if (i > 8)
15 f2 ();
16 a[i] = i <= 8;