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