Skip to content

Commit a485abb

Browse files
authored
[flang] Fix Driver/do_concurrent_to_omp_cli.f90 test not to use runtime (llvm#135485)
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.
1 parent 40727bc commit a485abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/test/Driver/do_concurrent_to_omp_cli.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
! BBC: -fdo-concurrent-to-openmp=<string>
1111
! BBC-SAME: Try to map `do concurrent` loops to OpenMP [none|host|device]
1212

13-
! RUN: %flang -fdo-concurrent-to-openmp=host %s 2>&1 \
13+
! RUN: %flang -c -fdo-concurrent-to-openmp=host %s 2>&1 \
1414
! RUN: | FileCheck %s --check-prefix=OPT
1515

1616
! OPT: warning: OpenMP is required for lowering `do concurrent` loops to OpenMP.

0 commit comments

Comments
 (0)