16 lines · plain
1! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-force-usm %s -o - | FileCheck %s2! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-is-target-device -fopenmp-force-usm %s -o - | FileCheck %s3! RUN: bbc -fopenmp -fopenmp-force-usm -emit-hlfir %s -o - | FileCheck %s4! RUN: bbc -fopenmp -fopenmp-is-target-device -fopenmp-force-usm -emit-hlfir %s -o - | FileCheck %s5 6! This test checks the addition of requires unified_shared_memory when7! -fopenmp-force-usm is set, even when other requires directives are present8 9!CHECK: module attributes {10!CHECK-SAME: omp.requires = #omp<clause_requires reverse_offload|unified_shared_memory>11program requires12 !$omp requires reverse_offload13 !$omp target14 !$omp end target15end program requires16