// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -fopenmp-version=50 -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s typedef unsigned long omp_event_handle_t; void test() { omp_event_handle_t evt; #pragma omp task detach(evt) ; } // CHECK: TranslationUnitDecl {{.*}} <> // CHECK: `-FunctionDecl {{.*}} line:4:6 test 'void ()' // CHECK-NEXT: `-CompoundStmt {{.*}} // CHECK: `-OMPTaskDirective {{.*}} // CHECK-NEXT: |-OMPDetachClause {{.+}} // CHECK-NEXT: | `-DeclRefExpr {{.+}} 'omp_event_handle_t':'unsigned long' lvalue Var {{.+}} 'evt' 'omp_event_handle_t':'unsigned long' // CHECK-NEXT: |-OMPFirstprivateClause {{.+}} <> // CHECK-NEXT: | `-DeclRefExpr {{.+}} 'omp_event_handle_t':'unsigned long' lvalue Var {{.+}} 'evt' 'omp_event_handle_t':'unsigned long' // CHECK-NEXT: `-CapturedStmt {{.*}} // CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow // CHECK-NEXT: |-NullStmt {{.*}} // CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:1 implicit .global_tid. 'const int' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:1 implicit .part_id. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:1 implicit .privates. 'void *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:1 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:1 implicit .task_t. 'void *const' // CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-task.c:6:1) *const restrict'