]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cilk-plus/for3.C
[Patch AArch64] Fixup floating point division with -march=armv8-a+nosimd
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cilk-plus / for3.C
CommitLineData
c02065fc
AH
1/* { dg-do compile } */
2/* { dg-options "-O3 -fcilkplus" } */
3
4// Test storage classes in the initialization of a <#pragma simd> for
5// loop.
6
7int *a, *b;
8
9void foo()
10{
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 }
18}