* Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
[official-gcc.git] / gcc / testsuite / g++.dg / cilk-plus / for3.C
blob28dbdee4339e995e5686598a26fb3c1a0598afbd
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fcilkplus" } */
4 // Test storage classes in the initialization of a <#pragma simd> for
5 // loop.
7 int *a, *b;
9 void foo()
11 #pragma simd
12   for (int tt=5; tt < 10; ++tt)
13     {
14       a[tt] = b[tt];
15       if (tt == 8)
16         throw 1; /* { dg-error "throw expressions are not allowed" } */
17     }