Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Lower / OpenMP / taskyield.f90
blobca0bc1d071df65fa1867af5e13f40252b5994aca
1 !RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect"
2 !RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="OMPDialect"
4 !FIRDialect-LABEL: @_QPomp_taskyield
5 subroutine omp_taskyield
6 !OMPDialect: omp.taskyield
7 !$omp taskyield
8 !FIRDialect: fir.call @_QPfoo() {{.*}}: () -> ()
9 call foo()
10 !OMPDialect: omp.taskyield
11 !$omp taskyield
12 end subroutine omp_taskyield