blob: 0a72a9ca8352ac66f65ba592a52e012f58d672c9 [file] [log] [blame]
Roman Lebedevfdb3d9b2019-03-20 16:31:47 +00001// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
2
3void test() {
4#pragma omp parallel
5 ;
6}
7
Richard Smith2e2c02c2019-06-02 04:00:38 +00008// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
9// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel.c:3:1, line:6:1> line:3:6 test 'void ()'
10// CHECK-NEXT: `-CompoundStmt {{.*}} <col:13, line:6:1>
11// CHECK-NEXT: `-OMPParallelDirective {{.*}} <line:4:1, col:21>
12// CHECK-NEXT: `-CapturedStmt {{.*}} <line:5:3>
13// CHECK-NEXT: `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
Roman Lebedevd5edcb92020-03-12 12:18:01 +030014// CHECK-NEXT: |-NullStmt {{.*}} <col:3>
Richard Smith2e2c02c2019-06-02 04:00:38 +000015// CHECK-NEXT: |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit .global_tid. 'const int *const restrict'
16// CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
17// CHECK-NEXT: `-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel.c:4:1) *const restrict'