Fix Flang invocation in `Driver/do_concurrent_to_omp_cli.f90` test to run compilation step only, to fix testing when building with `-DFLANG_INCLUDE_RUNTIME=OFF`. The test is only concerned with warning being emitted by the compiler, so there is no need to link the resulting executable.
21 lines
654 B
Fortran
21 lines
654 B
Fortran
! UNSUPPORTED: system-windows
|
|
|
|
! RUN: %flang --help | FileCheck %s --check-prefix=FLANG
|
|
|
|
! FLANG: -fdo-concurrent-to-openmp=<value>
|
|
! FLANG-NEXT: Try to map `do concurrent` loops to OpenMP [none|host|device]
|
|
|
|
! RUN: bbc --help | FileCheck %s --check-prefix=BBC
|
|
|
|
! BBC: -fdo-concurrent-to-openmp=<string>
|
|
! BBC-SAME: Try to map `do concurrent` loops to OpenMP [none|host|device]
|
|
|
|
! RUN: %flang -c -fdo-concurrent-to-openmp=host %s 2>&1 \
|
|
! RUN: | FileCheck %s --check-prefix=OPT
|
|
|
|
! OPT: warning: OpenMP is required for lowering `do concurrent` loops to OpenMP.
|
|
! OPT-SAME: Enable OpenMP using `-fopenmp`.
|
|
|
|
program test_cli
|
|
end program
|