[clang] [CIR][NFC] Fix failing test (aapcs-volatile-bitfields.c) (PR #164659)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 22 09:36:17 PDT 2025


https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/164659

Something changed to cause the aapcs-volatile-bitfields.c test to start failing. This test was using "1>" to redirect stdout, and that now fails. This change fixes the problem.

>From 984181f99a65c8362bca380c63e32584f0d64314 Mon Sep 17 00:00:00 2001
From: Andy Kaylor <akaylor at nvidia.com>
Date: Wed, 22 Oct 2025 09:33:34 -0700
Subject: [PATCH] [CIR][NFC] Fix failing test (aapcs-volatile-bitfields.c)

Something changed to cause the aapcs-volatile-bitfields.c test to start
failing. This test was using "1>" to redirect stdout, and that now fails.
This change fixes the problem.
---
 clang/test/CIR/CodeGen/aapcs-volatile-bitfields.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/test/CIR/CodeGen/aapcs-volatile-bitfields.c b/clang/test/CIR/CodeGen/aapcs-volatile-bitfields.c
index 92eae6aab6800..19362cf79b107 100644
--- a/clang/test/CIR/CodeGen/aapcs-volatile-bitfields.c
+++ b/clang/test/CIR/CodeGen/aapcs-volatile-bitfields.c
@@ -1,11 +1,11 @@
-// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -fclangir -emit-cir -fdump-record-layouts %s -o %t.cir 1> %t.cirlayout
+// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -fclangir -emit-cir -fdump-record-layouts %s -o %t.cir > %t.cirlayout
 // RUN: FileCheck --input-file=%t.cirlayout %s --check-prefix=CIR-LAYOUT
 // RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR
 
 // RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll
 // RUN: FileCheck --input-file=%t-cir.ll %s --check-prefix=LLVM
 
-// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -emit-llvm -fdump-record-layouts %s -o %t.ll 1> %t.ogcglayout
+// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -emit-llvm -fdump-record-layouts %s -o %t.ll > %t.ogcglayout
 // RUN: FileCheck --input-file=%t.ogcglayout %s --check-prefix=OGCG-LAYOUT
 // RUN: FileCheck --input-file=%t.ll %s --check-prefix=OGCG
 



More information about the cfe-commits mailing list