1 // RUN: %clang_cc1 -verify=expected -fopenmp -ferror-limit 100 %s -Wuninitialized
2 
mixed()3 int mixed() {
4   int x = 0;
5   int d = 4;
6 
7 #pragma omp nothing
8   x=d;
9 
10   if(!x) {
11 #pragma omp nothing
12     x=d;
13   }
14 
15 // expected-error@+2 {{#pragma omp nothing' cannot be an immediate substatement}}
16   if(!x)
17 #pragma omp nothing
18     x=d;
19 
20 // expected-warning@+2 {{extra tokens at the end of '#pragma omp nothing' are ignored}}
21   if(!x) {
22 #pragma omp nothing seq_cst
23     x=d;
24   }
25 
26   return 0;
27 }
28