diff --git a/flang/test/Driver/do_concurrent_to_omp_cli.f90 b/flang/test/Driver/do_concurrent_to_omp_cli.f90 index 41b7575e206af..bdb603f35639d 100644 --- a/flang/test/Driver/do_concurrent_to_omp_cli.f90 +++ b/flang/test/Driver/do_concurrent_to_omp_cli.f90 @@ -10,7 +10,7 @@ ! BBC: -fdo-concurrent-to-openmp= ! BBC-SAME: Try to map `do concurrent` loops to OpenMP [none|host|device] -! RUN: %flang -fdo-concurrent-to-openmp=host %s 2>&1 \ +! 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.