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 -fsyntax-only -verify %s -ast-print | FileCheck %s
4 // expected-no-diagnostics
11 template <class T, int N>
13 T b = argc, c, d, e, f, g;
17 #pragma omp sections private(argc, b), firstprivate(c, d), lastprivate(d, f) reduction(- : g) nowait
21 // CHECK-NEXT: #pragma omp parallel
22 // CHECK-NEXT: #pragma omp sections private(argc,b) firstprivate(c,d) lastprivate(d,f) reduction(-: g) nowait
29 int main(int argc, char **argv) {
30 // CHECK: int main(int argc, char **argv) {
31 int b = argc, c, d, e, f, g;
33 // CHECK: static int a;
35 #pragma omp sections private(argc, b), firstprivate(argv, c), lastprivate(d, f) reduction(+ : g) nowait
42 // CHECK-NEXT: #pragma omp parallel
43 // CHECK-NEXT: #pragma omp sections private(argc,b) firstprivate(argv,c) lastprivate(d,f) reduction(+: g) nowait
45 // CHECK-NEXT: #pragma omp section
47 // CHECK-NEXT: #pragma omp section
50 return (tmain<int, 5>(argc) + tmain<char, 1>(argv[0][0]));