Skip to content

Commit 06f671e

Browse files
authored
[clang][nfc] Fix tests to avoid writing output to unreachable location, which might cause them to fail (#158698)
[clang][nfc] Fix tests to avoid writing output to unreachable location, which might cause them to fail
1 parent 2b3f80d commit 06f671e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Driver/clang_f_opts.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
// RUN: %clang -### -S -fexperimental-loop-fusion %s 2>&1 | FileCheck -check-prefix=CHECK-FUSE-LOOPS %s
5656
// CHECK-FUSE-LOOPS: "-fexperimental-loop-fusion"
5757
//
58-
// RUN: %clang -c -fexperimental-loop-fusion -mllvm -print-pipeline-passes -O3 %s 2>&1 | FileCheck --check-prefixes=LOOP-FUSION-ON %s
59-
// RUN: %clang -c -mllvm -print-pipeline-passes -O3 %s 2>&1 | FileCheck --check-prefixes=LOOP-FUSION-OFF %s
58+
// RUN: %clang -c -fexperimental-loop-fusion -mllvm -print-pipeline-passes -O3 %s -o /dev/null 2>&1 | FileCheck --check-prefixes=LOOP-FUSION-ON %s
59+
// RUN: %clang -c -mllvm -print-pipeline-passes -O3 %s -o /dev/null 2>&1 | FileCheck --check-prefixes=LOOP-FUSION-OFF %s
6060

6161
// LOOP-FUSION-ON: loop-fusion
6262
// LOOP-FUSION-OFF-NOT: loop-fusion

0 commit comments

Comments
 (0)