1 !RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
3 !CHECK: omp.critical.declare @help2 hint(none)
4 !CHECK: omp.critical.declare @help1 hint(contended)
6 subroutine omp_critical()
9 !CHECK: omp.critical(@help1)
10 !$OMP CRITICAL(help1) HINT(omp_lock_hint_contended)
12 !CHECK: omp.terminator
13 !$OMP END CRITICAL(help1)
15 ! Test that the same name can be used again
16 ! Also test with the zero hint expression
17 !CHECK: omp.critical(@help2)
18 !$OMP CRITICAL(help2) HINT(omp_lock_hint_none)
20 !CHECK: omp.terminator
21 !$OMP END CRITICAL(help2)
26 !CHECK: omp.terminator
28 end subroutine omp_critical