[clang] fda34a9 - [clang] Fix lit test after f341dab for envs that cannot write to file (#201121)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 2 07:00:47 PDT 2026
Author: Christian Sigg
Date: 2026-06-02T14:00:40Z
New Revision: fda34a97729f254d1a184d341683132c4ec65489
URL: https://github.com/llvm/llvm-project/commit/fda34a97729f254d1a184d341683132c4ec65489
DIFF: https://github.com/llvm/llvm-project/commit/fda34a97729f254d1a184d341683132c4ec65489.diff
LOG: [clang] Fix lit test after f341dab for envs that cannot write to file (#201121)
Added:
Modified:
clang/test/CodeGen/RISCV/riscv-cf-protection.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/RISCV/riscv-cf-protection.c b/clang/test/CodeGen/RISCV/riscv-cf-protection.c
index 162a50eb0eabd..9154566103276 100644
--- a/clang/test/CodeGen/RISCV/riscv-cf-protection.c
+++ b/clang/test/CodeGen/RISCV/riscv-cf-protection.c
@@ -5,8 +5,8 @@
// RUN: not %clang --target=riscv32 -menable-experimental-extensions \
// RUN: -march=rv32i_zicfilp1p0 -fcf-protection=branch \
-// RUN: -mcf-branch-label-scheme=func-sig -S -emit-llvm %s 2>&1 | FileCheck \
-// RUN: --check-prefixes=FUNC-SIG-NOSUPPORT %s
+// RUN: -mcf-branch-label-scheme=func-sig -S -emit-llvm %s -o - 2>&1 | \
+// RUN: FileCheck --check-prefixes=FUNC-SIG-NOSUPPORT %s
// RUN: %clang --target=riscv32 -menable-experimental-extensions \
// RUN: -march=rv32i_zicfilp1p0 -mcf-branch-label-scheme=unlabeled -S \
@@ -23,8 +23,8 @@
// RUN: --check-prefixes=BRANCH-PROT-FLAG,UNLABELED-FLAG %s
// RUN: not %clang --target=riscv32 -fcf-protection=branch \
-// RUN: -mcf-branch-label-scheme=func-sig -S -emit-llvm %s 2>&1 | FileCheck \
-// RUN: --check-prefixes=FUNC-SIG-NOSUPPORT %s
+// RUN: -mcf-branch-label-scheme=func-sig -S -emit-llvm %s -o - 2>&1 | \
+// RUN: FileCheck --check-prefixes=FUNC-SIG-NOSUPPORT %s
// RUN: %clang --target=riscv32 -mcf-branch-label-scheme=unlabeled -S \
// RUN: -emit-llvm %s -o - 2>&1 | FileCheck \
@@ -41,8 +41,8 @@
// RUN: not %clang --target=riscv64 -menable-experimental-extensions \
// RUN: -march=rv64i_zicfilp1p0 -fcf-protection=branch \
-// RUN: -mcf-branch-label-scheme=func-sig -S -emit-llvm %s 2>&1 | FileCheck \
-// RUN: --check-prefixes=FUNC-SIG-NOSUPPORT %s
+// RUN: -mcf-branch-label-scheme=func-sig -S -emit-llvm %s -o - 2>&1 | \
+// RUN: FileCheck --check-prefixes=FUNC-SIG-NOSUPPORT %s
// RUN: %clang --target=riscv64 -menable-experimental-extensions \
// RUN: -march=rv64i_zicfilp1p0 -mcf-branch-label-scheme=unlabeled -S \
@@ -59,8 +59,8 @@
// RUN: --check-prefixes=BRANCH-PROT-FLAG,UNLABELED-FLAG %s
// RUN: not %clang --target=riscv64 -fcf-protection=branch \
-// RUN: -mcf-branch-label-scheme=func-sig -S -emit-llvm %s 2>&1 | FileCheck \
-// RUN: --check-prefixes=FUNC-SIG-NOSUPPORT %s
+// RUN: -mcf-branch-label-scheme=func-sig -S -emit-llvm %s -o - 2>&1 | \
+// RUN: FileCheck --check-prefixes=FUNC-SIG-NOSUPPORT %s
// RUN: %clang --target=riscv64 -mcf-branch-label-scheme=unlabeled -S \
// RUN: -emit-llvm %s -o - 2>&1 | FileCheck \
@@ -71,12 +71,12 @@
// RUN: --check-prefixes=NO-FLAG,FUNC-SIG-SCHEME-UNUSED %s
// Default -mcf-branch-label-scheme is func-sig
-// RUN: not %clang --target=riscv32 -fcf-protection=branch -S -emit-llvm %s 2>&1 \
-// RUN: | FileCheck --check-prefixes=FORCE-UNLABELED %s
+// RUN: not %clang --target=riscv32 -fcf-protection=branch -S -emit-llvm %s \
+// RUN: -o - 2>&1 | FileCheck --check-prefixes=FORCE-UNLABELED %s
// Default -mcf-branch-label-scheme is func-sig
-// RUN: not %clang --target=riscv64 -fcf-protection=branch -S -emit-llvm %s 2>&1 \
-// RUN: | FileCheck --check-prefixes=FORCE-UNLABELED %s
+// RUN: not %clang --target=riscv64 -fcf-protection=branch -S -emit-llvm %s \
+// RUN: -o - 2>&1 | FileCheck --check-prefixes=FORCE-UNLABELED %s
// UNLABELED-SCHEME-UNUSED: warning: argument unused during compilation:
// UNLABELED-SCHEME-UNUSED-SAME: '-mcf-branch-label-scheme=unlabeled'
More information about the cfe-commits
mailing list