1!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s --check-prefix=DEVICE 2!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s --check-prefix=HOST 3!RUN: %flang_fc1 -emit-hlfir -fopenmp-is-target-device %s -o - | FileCheck %s --check-prefix=DEVICE-FLAG-ONLY 4!RUN: bbc -fopenmp -fopenmp-is-target-device -emit-hlfir -o - %s | FileCheck %s --check-prefix=DEVICE 5!RUN: bbc -fopenmp -emit-hlfir -o - %s | FileCheck %s --check-prefix=HOST 6!RUN: bbc -fopenmp-is-target-device -emit-hlfir -o - %s | FileCheck %s --check-prefix=DEVICE-FLAG-ONLY 7 8!DEVICE: module attributes {{{.*}}, omp.is_target_device = true{{.*}}} 9!HOST: module attributes {{{.*}}, omp.is_target_device = false{{.*}}} 10!DEVICE-FLAG-ONLY: module attributes {{{.*}}" 11!DEVICE-FLAG-ONLY-NOT: , omp.is_target_device = {{.*}} 12!DEVICE-FLAG-ONLY-SAME: } 13subroutine omp_subroutine() 14end subroutine omp_subroutine 15