1!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
2
3!CHECK-LABEL: @_QPomp_taskwait
4subroutine omp_taskwait
5 !CHECK: omp.taskwait
6 !$omp taskwait
7 !CHECK: fir.call @_QPfoo() {{.*}}: () -> ()
8 call foo()
9 !CHECK: omp.taskwait
10 !$omp taskwait
11end subroutine omp_taskwait
12