diff --git a/flang/test/Driver/w-arg-unsupported.f90 b/flang/test/Driver/w-arg-unsupported.f90 index 84025523cf59f..1ef25fdd4db00 100644 --- a/flang/test/Driver/w-arg-unsupported.f90 +++ b/flang/test/Driver/w-arg-unsupported.f90 @@ -4,7 +4,7 @@ ! RUN: -Wintrinsics-std -Wline-truncation -Wno-align-commons -Wno-overwrite-recursive \ ! RUN: -Wno-tabs -Wreal-q-constant -Wsurprising -Wunderflow -Wunused-parameter \ ! RUN: -Wrealloc-lhs -Wrealloc-lhs-all -Wfrontend-loop-interchange -Wtarget-lifetime %s \ -! RUN: 2>&1 | FileCheck %s +! RUN: -c 2>&1 | FileCheck %s ! CHECK: The warning option '-Wextra' is not supported ! CHECK-NEXT: The warning option '-Waliasing' is not supported diff --git a/flang/test/Driver/werror-all.f90 b/flang/test/Driver/werror-all.f90 index 35fd0df5d5a76..6d8c03510276c 100644 --- a/flang/test/Driver/werror-all.f90 +++ b/flang/test/Driver/werror-all.f90 @@ -1,8 +1,8 @@ ! Ensures that -Werror is read regardless of whether or not other -W ! flags are present in the CLI args -! RUN: not %flang -std=f2018 -Werror -Wextra %s 2>&1 | FileCheck %s --check-prefix=WRONG -! RUN: %flang -std=f2018 -Wextra -Wall %s 2>&1 | FileCheck %s --check-prefix=CHECK-OK +! RUN: not %flang -std=f2018 -Werror -Wextra %s -c 2>&1 | FileCheck %s --check-prefix=WRONG +! RUN: %flang -std=f2018 -Wextra -Wall %s -c 2>&1 | FileCheck %s --check-prefix=CHECK-OK ! WRONG: Semantic errors in ! CHECK-OK: FORALL index variable diff --git a/flang/test/Driver/wextra-ok.f90 b/flang/test/Driver/wextra-ok.f90 index 5ad18b965aebf..48676e8e62aa7 100644 --- a/flang/test/Driver/wextra-ok.f90 +++ b/flang/test/Driver/wextra-ok.f90 @@ -1,8 +1,8 @@ ! Ensure that supplying -Wextra into flang-new does not raise error ! The first check should be changed if -Wextra is implemented -! RUN: %flang -std=f2018 -Wextra %s 2>&1 | FileCheck %s --check-prefix=CHECK-OK -! RUN: not %flang -std=f2018 -Wblah -Wextra %s 2>&1 | FileCheck %s --check-prefix=WRONG +! RUN: %flang -std=f2018 -Wextra %s -c 2>&1 | FileCheck %s --check-prefix=CHECK-OK +! RUN: not %flang -std=f2018 -Wblah -Wextra %s -c 2>&1 | FileCheck %s --check-prefix=WRONG ! CHECK-OK: The warning option '-Wextra' is not supported ! WRONG: Only `-Werror` is supported currently.