]>
Commit | Line | Data |
---|---|---|
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 | ||
7 | int *a, *b; | |
8 | ||
9 | void 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 | } |