20 lines · plain
1! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s2! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s3! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s4! RUN: bbc -fopenmp -fopenmp-is-target-device -emit-hlfir %s -o - | FileCheck %s5 6! This test checks the lowering of requires into MLIR7 8!CHECK: module attributes {9!CHECK-SAME: omp.requires = #omp<clause_requires unified_shared_memory>10block data init11 !$omp requires unified_shared_memory12 integer :: x13 common /block/ x14 data x / 10 /15end16 17subroutine f18 !$omp declare target19end subroutine f20