llvm-project/flang/test/Lower/OpenMP/requires-common.f90
Kiran Chandramohan 09b30f4090 [Flang][OpenMP] NFC: Copy a few tests that do not change with HLFIR lowering
These are version of tests with the same name in flang/test/Lower/OpenMP/FIR.
2023-10-03 15:29:05 +00:00

20 lines
610 B
Fortran

! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s
! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
! RUN: bbc -fopenmp -fopenmp-is-target-device -emit-hlfir %s -o - | FileCheck %s
! This test checks the lowering of requires into MLIR
!CHECK: module attributes {
!CHECK-SAME: omp.requires = #omp<clause_requires unified_shared_memory>
block data init
!$omp requires unified_shared_memory
integer :: x
common /block/ x
data x / 10 /
end
subroutine f
!$omp declare target
end subroutine f