xref: /llvm-project/flang/test/Driver/fno-openmp.f90 (revision 4f130fa943af8bf47f4401deff0d825a91dc7584)
1! RUN: %flang_fc1 -fopenmp -fno-openmp %s -emit-hlfir -o - | FileCheck --check-prefix=CHECK-NO-OMP %s
2! RUN: %flang_fc1 -fno-openmp %s -emit-hlfir -o - | FileCheck --check-prefix=CHECK-NO-OMP %s
3! RUN: %flang_fc1 -fno-openmp -fopenmp %s -emit-hlfir -o - | FileCheck --check-prefix=CHECK-OMP %s
4! RUN: %flang_fc1 -fopenmp %s -emit-hlfir -o - | FileCheck --check-prefix=CHECK-OMP %s
5
6subroutine main
7  ! CHECK-NO-OMP-NOT: omp.parallel
8  ! CHECK-OMP: omp.parallel
9  !$omp parallel
10  print *,"test"
11  !$omp end parallel
12end subroutine
13