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
9 int main (int argc, char **argv) {
10 // CHECK: int main(int argc, char **argv) {
13 #pragma omp cancellation point parallel
15 // CHECK: #pragma omp parallel
17 // CHECK-NEXT: #pragma omp cancellation point parallel
21 #pragma omp cancellation point sections
23 // CHECK-NEXT: #pragma omp sections
25 // CHECK: #pragma omp cancellation point sections
28 for (int i = 0; i < argc; ++i) {
29 #pragma omp cancellation point for
31 // CHECK: #pragma omp for
32 // CHECK-NEXT: for (int i = 0; i < argc; ++i) {
33 // CHECK-NEXT: #pragma omp cancellation point for
37 #pragma omp cancellation point taskgroup
39 // CHECK: #pragma omp task
41 // CHECK: #pragma omp cancellation point taskgroup
43 // CHECK: return argc;