OSDN Git Service

Update gcc.dg/atomic-flag.c test for non-boolean TAS targets.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20111216-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fexceptions -fnon-call-exceptions" } */
3
4 extern void f2 () __attribute__ ((noreturn));
5 void
6 f1 ()
7 {
8   unsigned char a[8];
9   unsigned int i;
10
11   for (i = 0; i < 8; i++)
12     {
13       if (i > 8)
14         f2 ();
15       a[i] = i <= 8;
16     }
17 }