1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -o - %s
5 int main(int argc, char **argv) {
7 #pragma omp target parallel for simd default // expected-error {{expected '(' after 'default'}}
8 for (i = 0; i < argc; ++i)
10 #pragma omp target parallel for simd default( // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}} expected-error {{expected ')'}} expected-note {{to match this '('}}
11 for (i = 0; i < argc; ++i)
13 #pragma omp target parallel for simd default() // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}}
14 for (i = 0; i < argc; ++i)
16 #pragma omp target parallel for simd default(none // expected-error {{expected ')'}} expected-note {{to match this '('}}
17 for (i = 0; i < argc; ++i) // expected-error {{variable 'argc' must have explicitly specified data sharing attributes}}
19 #pragma omp target parallel for simd default(shared), default(shared) // expected-error {{directive '#pragma omp target parallel for simd' cannot contain more than one 'default' clause}}
20 for (i = 0; i < argc; ++i)
22 #pragma omp target parallel for simd default(x) // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}}
23 for (i = 0; i < argc; ++i)
26 #pragma omp target parallel for simd default(none)
27 for (i = 0; i < argc; ++i) // expected-error {{variable 'argc' must have explicitly specified data sharing attributes}}
30 #pragma omp parallel default(none)
31 #pragma omp target parallel for simd default(shared)
32 for (i = 0; i < argc; ++i)