blob: b55cedb93f458fecf4327fdd76ce427757f1d82e [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 single
5 ;
6}
7
8// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
9// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-single.c:3:1, line:6:1> line:3:6 test 'void ()'
10// CHECK-NEXT: `-CompoundStmt {{.*}} <col:13, line:6:1>
Joel E. Denny91f80662019-05-28 19:27:19 +000011// CHECK-NEXT: `-OMPSingleDirective {{.*}} <line:4:1, col:19>
Roman Lebedevfdb3d9b2019-03-20 16:31:47 +000012// CHECK-NEXT: `-CapturedStmt {{.*}} <line:5:3>
13// CHECK-NEXT: `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc>
Roman Lebedevd5edcb92020-03-12 12:18:01 +030014// CHECK-NEXT: |-NullStmt {{.*}} <col:3>
Joel E. Denny91f80662019-05-28 19:27:19 +000015// CHECK-NEXT: `-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-single.c:4:1) *const restrict'