1*56c16601SFazlay Rabbi // RUN: %clang_cc1 -verify=expected,omp51 -fopenmp -fopenmp-version=51 -ferror-limit 150 %s -Wuninitialized
2*56c16601SFazlay Rabbi // RUN: %clang_cc1 -verify=expected,omp50 -fopenmp -fopenmp-version=50 -ferror-limit 150 %s -Wuninitialized
3ab9eac76SFazlay Rabbi
4*56c16601SFazlay Rabbi // RUN: %clang_cc1 -verify=expected,omp51 -fopenmp -fopenmp-version=51 -fopenmp-simd -ferror-limit 150 %s -Wuninitialized
5*56c16601SFazlay Rabbi // RUN: %clang_cc1 -verify=expected,omp50 -fopenmp -fopenmp-version=50 -fopenmp-simd -ferror-limit 150 %s -Wuninitialized
6ab9eac76SFazlay Rabbi
foo()7ab9eac76SFazlay Rabbi void foo() {
8ab9eac76SFazlay Rabbi }
9ab9eac76SFazlay Rabbi
foobool(int argc)10ab9eac76SFazlay Rabbi bool foobool(int argc) {
11ab9eac76SFazlay Rabbi return argc;
12ab9eac76SFazlay Rabbi }
13ab9eac76SFazlay Rabbi
14ab9eac76SFazlay Rabbi template <class T, class S>
tmain(T argc,S ** argv)15ab9eac76SFazlay Rabbi int tmain(T argc, S **argv) {
16ab9eac76SFazlay Rabbi T z;
17ab9eac76SFazlay Rabbi #pragma omp taskloop grainsize(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
18ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
19ab9eac76SFazlay Rabbi foo();
20ab9eac76SFazlay Rabbi #pragma omp taskloop grainsize(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
21ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
22ab9eac76SFazlay Rabbi foo();
23ab9eac76SFazlay Rabbi #pragma omp taskloop grainsize(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'grainsize'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
24ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
25ab9eac76SFazlay Rabbi foo();
26*56c16601SFazlay Rabbi #pragma omp taskloop num_tasks(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
27*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
28*56c16601SFazlay Rabbi foo();
29*56c16601SFazlay Rabbi #pragma omp taskloop num_tasks(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
30*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
31*56c16601SFazlay Rabbi foo();
32*56c16601SFazlay Rabbi #pragma omp taskloop num_tasks(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'num_tasks'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
33*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
34*56c16601SFazlay Rabbi foo();
35ab9eac76SFazlay Rabbi return 0;
36ab9eac76SFazlay Rabbi }
37ab9eac76SFazlay Rabbi
main(int argc,char ** argv)38ab9eac76SFazlay Rabbi int main(int argc, char **argv) {
39ab9eac76SFazlay Rabbi int z;
40ab9eac76SFazlay Rabbi #pragma omp masked taskloop grainsize(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
41ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
42ab9eac76SFazlay Rabbi foo();
43ab9eac76SFazlay Rabbi #pragma omp masked taskloop grainsize(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
44ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
45ab9eac76SFazlay Rabbi foo();
46ab9eac76SFazlay Rabbi #pragma omp masked taskloop grainsize(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'grainsize'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
47ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
48ab9eac76SFazlay Rabbi foo();
49ab9eac76SFazlay Rabbi
50ab9eac76SFazlay Rabbi #pragma omp masked taskloop simd grainsize(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
51ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
52ab9eac76SFazlay Rabbi foo();
53ab9eac76SFazlay Rabbi #pragma omp masked taskloop simd grainsize(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
54ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
55ab9eac76SFazlay Rabbi foo();
56ab9eac76SFazlay Rabbi #pragma omp masked taskloop simd grainsize(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'grainsize'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
57ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
58ab9eac76SFazlay Rabbi foo();
59ab9eac76SFazlay Rabbi
60ab9eac76SFazlay Rabbi #pragma omp parallel masked taskloop grainsize(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
61ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
62ab9eac76SFazlay Rabbi foo();
63ab9eac76SFazlay Rabbi #pragma omp parallel masked taskloop grainsize(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
64ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
65ab9eac76SFazlay Rabbi foo();
66ab9eac76SFazlay Rabbi #pragma omp parallel masked taskloop grainsize(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'grainsize'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
67ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
68ab9eac76SFazlay Rabbi foo();
69ab9eac76SFazlay Rabbi
70ab9eac76SFazlay Rabbi #pragma omp parallel masked taskloop simd grainsize(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
71ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
72ab9eac76SFazlay Rabbi foo();
73ab9eac76SFazlay Rabbi #pragma omp parallel masked taskloop simd grainsize(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
74ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
75ab9eac76SFazlay Rabbi foo();
76ab9eac76SFazlay Rabbi #pragma omp parallel masked taskloop simd grainsize(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'grainsize'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
77ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
78ab9eac76SFazlay Rabbi foo();
79ab9eac76SFazlay Rabbi
80ab9eac76SFazlay Rabbi #pragma omp master taskloop grainsize(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
81ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
82ab9eac76SFazlay Rabbi foo();
83ab9eac76SFazlay Rabbi #pragma omp master taskloop grainsize(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
84ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
85ab9eac76SFazlay Rabbi foo();
86ab9eac76SFazlay Rabbi #pragma omp master taskloop grainsize(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'grainsize'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
87ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
88ab9eac76SFazlay Rabbi foo();
89ab9eac76SFazlay Rabbi
90ab9eac76SFazlay Rabbi #pragma omp master taskloop simd grainsize(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
91ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
92ab9eac76SFazlay Rabbi foo();
93ab9eac76SFazlay Rabbi #pragma omp master taskloop simd grainsize(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
94ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
95ab9eac76SFazlay Rabbi foo();
96ab9eac76SFazlay Rabbi #pragma omp master taskloop simd grainsize(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'grainsize'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
97ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
98ab9eac76SFazlay Rabbi foo();
99ab9eac76SFazlay Rabbi
100ab9eac76SFazlay Rabbi #pragma omp parallel master taskloop grainsize(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
101ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
102ab9eac76SFazlay Rabbi foo();
103ab9eac76SFazlay Rabbi #pragma omp parallel master taskloop grainsize(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
104ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
105ab9eac76SFazlay Rabbi foo();
106ab9eac76SFazlay Rabbi #pragma omp parallel master taskloop grainsize(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'grainsize'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
107ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
108ab9eac76SFazlay Rabbi foo();
109ab9eac76SFazlay Rabbi
110ab9eac76SFazlay Rabbi #pragma omp parallel master taskloop simd grainsize(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
111ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
112ab9eac76SFazlay Rabbi foo();
113ab9eac76SFazlay Rabbi #pragma omp parallel master taskloop simd grainsize(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
114ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
115ab9eac76SFazlay Rabbi foo();
116ab9eac76SFazlay Rabbi #pragma omp parallel master taskloop simd grainsize(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'grainsize'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
117ab9eac76SFazlay Rabbi for (int i = 0; i < 10; ++i)
118ab9eac76SFazlay Rabbi foo();
119*56c16601SFazlay Rabbi #pragma omp masked taskloop num_tasks(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
120*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
121*56c16601SFazlay Rabbi foo();
122*56c16601SFazlay Rabbi #pragma omp masked taskloop num_tasks(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
123*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
124*56c16601SFazlay Rabbi foo();
125*56c16601SFazlay Rabbi #pragma omp masked taskloop num_tasks(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'num_tasks'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
126*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
127*56c16601SFazlay Rabbi foo();
128ab9eac76SFazlay Rabbi
129*56c16601SFazlay Rabbi #pragma omp masked taskloop simd num_tasks(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
130*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
131*56c16601SFazlay Rabbi foo();
132*56c16601SFazlay Rabbi #pragma omp masked taskloop simd num_tasks(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
133*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
134*56c16601SFazlay Rabbi foo();
135*56c16601SFazlay Rabbi #pragma omp masked taskloop simd num_tasks(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'num_tasks'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
136*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
137*56c16601SFazlay Rabbi foo();
138*56c16601SFazlay Rabbi
139*56c16601SFazlay Rabbi #pragma omp parallel masked taskloop num_tasks(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
140*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
141*56c16601SFazlay Rabbi foo();
142*56c16601SFazlay Rabbi #pragma omp parallel masked taskloop num_tasks(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
143*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
144*56c16601SFazlay Rabbi foo();
145*56c16601SFazlay Rabbi #pragma omp parallel masked taskloop num_tasks(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'num_tasks'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
146*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
147*56c16601SFazlay Rabbi foo();
148*56c16601SFazlay Rabbi
149*56c16601SFazlay Rabbi #pragma omp parallel masked taskloop simd num_tasks(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
150*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
151*56c16601SFazlay Rabbi foo();
152*56c16601SFazlay Rabbi #pragma omp parallel masked taskloop simd num_tasks(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
153*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
154*56c16601SFazlay Rabbi foo();
155*56c16601SFazlay Rabbi #pragma omp parallel masked taskloop simd num_tasks(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'num_tasks'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
156*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
157*56c16601SFazlay Rabbi foo();
158*56c16601SFazlay Rabbi
159*56c16601SFazlay Rabbi #pragma omp master taskloop num_tasks(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
160*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
161*56c16601SFazlay Rabbi foo();
162*56c16601SFazlay Rabbi #pragma omp master taskloop num_tasks(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
163*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
164*56c16601SFazlay Rabbi foo();
165*56c16601SFazlay Rabbi #pragma omp master taskloop num_tasks(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'num_tasks'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
166*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
167*56c16601SFazlay Rabbi foo();
168*56c16601SFazlay Rabbi
169*56c16601SFazlay Rabbi #pragma omp master taskloop simd num_tasks(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
170*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
171*56c16601SFazlay Rabbi foo();
172*56c16601SFazlay Rabbi #pragma omp master taskloop simd num_tasks(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
173*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
174*56c16601SFazlay Rabbi foo();
175*56c16601SFazlay Rabbi #pragma omp master taskloop simd num_tasks(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'num_tasks'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
176*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
177*56c16601SFazlay Rabbi foo();
178*56c16601SFazlay Rabbi #pragma omp parallel master taskloop num_tasks(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
179*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
180*56c16601SFazlay Rabbi foo();
181*56c16601SFazlay Rabbi #pragma omp parallel master taskloop num_tasks(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
182*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
183*56c16601SFazlay Rabbi foo();
184*56c16601SFazlay Rabbi #pragma omp parallel master taskloop num_tasks(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'num_tasks'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
185*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
186*56c16601SFazlay Rabbi foo();
187*56c16601SFazlay Rabbi
188*56c16601SFazlay Rabbi #pragma omp parallel master taskloop simd num_tasks(strict 10) // omp51-error {{missing ':' after strict modifier}} omp50-error {{use of undeclared identifier 'strict'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
189*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
190*56c16601SFazlay Rabbi foo();
191*56c16601SFazlay Rabbi #pragma omp parallel master taskloop simd num_tasks(aa 10) // omp51-error {{use of undeclared identifier 'aa'}} omp51-error {{expected ')'}} omp51-note {{to match this '('}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
192*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
193*56c16601SFazlay Rabbi foo();
194*56c16601SFazlay Rabbi #pragma omp parallel master taskloop simd num_tasks(aa: 10) // omp51-error {{expected 'strict' in OpenMP clause 'num_tasks'}} omp50-error {{use of undeclared identifier 'aa'}} omp50-error {{expected ')'}} omp50-note {{to match this '('}}
195*56c16601SFazlay Rabbi for (int i = 0; i < 10; ++i)
196*56c16601SFazlay Rabbi foo();
197ab9eac76SFazlay Rabbi return tmain(argc, argv);
198ab9eac76SFazlay Rabbi }
199