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
13 int main (int argc
, char **argv
) {
14 // CHECK: int main(int argc, char **argv) {
17 #pragma omp cancellation point parallel
19 // CHECK: #pragma omp parallel
21 // CHECK-NEXT: #pragma omp cancellation point parallel{{$}}
25 #pragma omp cancellation point sections
27 // CHECK-NEXT: #pragma omp sections
29 // CHECK: #pragma omp cancellation point sections
32 for (int i
= 0; i
< argc
; ++i
) {
33 #pragma omp cancellation point for
35 // CHECK: #pragma omp for
36 // CHECK-NEXT: for (int i = 0; i < argc; ++i) {
37 // CHECK-NEXT: #pragma omp cancellation point for
41 #pragma omp cancellation point taskgroup
43 // CHECK: #pragma omp task
45 // CHECK: #pragma omp cancellation point taskgroup
47 // CHECK: return argc;