1 // RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s
2 // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s
3 // RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -verify %s -ast-print | FileCheck %s
5 // RUN: %clang_cc1 -verify -fopenmp-simd -ast-print %s | FileCheck %s
6 // RUN: %clang_cc1 -fopenmp-simd -x c++ -std=c++11 -emit-pch -o %t %s
7 // RUN: %clang_cc1 -fopenmp-simd -std=c++11 -include-pch %t -verify %s -ast-print | FileCheck %s
8 // expected-no-diagnostics
19 #pragma omp taskwait depend(in:a, argc)
27 #pragma omp taskwait depend(in:a, argc) nowait
28 #pragma omp taskwait depend(in:a) depend(in:argc) nowait
33 // CHECK-NEXT: #pragma omp taskwait{{$}}
34 // CHECK-NEXT: #pragma omp taskwait depend(in : a,argc){{$}}
35 // CHECK: static int a;
36 // CHECK-NEXT: #pragma omp taskwait
37 // CHECK-NEXT: #pragma omp taskwait depend(in : a,argc){{$}}
38 // CHECK: static char a;
39 // CHECK-NEXT: #pragma omp taskwait
40 // CHECK-NEXT: #pragma omp taskwait depend(in : a,argc){{$}}
43 // CHECK-NEXT: #pragma omp taskwait{{$}}
44 // CHECK-NEXT: #pragma omp taskwait depend(in : a,argc) nowait{{$}}
45 // CHECK-NEXT: #pragma omp taskwait depend(in : a) depend(in : argc) nowait{{$}}
46 // CHECK: static int a;
47 // CHECK-NEXT: #pragma omp taskwait
48 // CHECK-NEXT: #pragma omp taskwait depend(in : a,argc) nowait{{$}}
49 // CHECK-NEXT: #pragma omp taskwait depend(in : a) depend(in : argc) nowait{{$}}
50 // CHECK: static char a;
51 // CHECK-NEXT: #pragma omp taskwait
52 // CHECK-NEXT: #pragma omp taskwait depend(in : a,argc) nowait{{$}}
53 // CHECK-NEXT: #pragma omp taskwait depend(in : a) depend(in : argc) nowait{{$}}
55 int main(int argc
, char **argv
) {
57 // CHECK: static int a;
59 #pragma omp taskwait depend(out:a, argc)
60 // CHECK-NEXT: #pragma omp taskwait
61 // CHECK-NEXT: #pragma omp taskwait depend(out : a,argc)
62 return tmain(argc
) + tmain(argv
[0][0]) + a
+ ndmain(argc
) + ndmain(argv
[0][0]);