https://github.com/hubert-reinterpretcast created 
https://github.com/llvm/llvm-project/pull/235590

Versions of `sed` conforming to POSIX.1 prior to POSIX.1-2024 may operate only 
on basic regular expressions.

Avoids
```
sed: illegal option -- E
```
on AIX.

>From 88abd32fbe059c991108c1e7f96c9bee43c49137 Mon Sep 17 00:00:00 2001
From: Hubert Tong <[email protected]>
Date: Mon, 26 Oct 2026 00:47:19 -0400
Subject: [PATCH] [clang][test] cir-input-invalid.cir: Use POSIX BRE with `sed`
 instead of ERE

Versions of `sed` conforming to POSIX.1 prior to POSIX.1-2024 may
operate only on basic regular expressions.

Avoids
```
sed: illegal option -- E
```
on AIX.
---
 clang/test/CIR/Input/cir-input-invalid.cir | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/CIR/Input/cir-input-invalid.cir 
b/clang/test/CIR/Input/cir-input-invalid.cir
index cc64546eed3580..cbf3f944e20d75 100644
--- a/clang/test/CIR/Input/cir-input-invalid.cir
+++ b/clang/test/CIR/Input/cir-input-invalid.cir
@@ -18,7 +18,7 @@
 // Ops in CIR emitted by CIRGen are located in the original source, which is 
not
 // loaded for ClangIR input; the location is kept as text in the message.
 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir 
%t/src.c -o - \
-// RUN:   | sed -E 's/cir\.return %[0-9]+ : !s32i/cir.return/' > 
%t/src-verifier.cir
+// RUN:   | sed 's/cir\.return %[0-9]\{1,\} : !s32i/cir.return/' > 
%t/src-verifier.cir
 // RUN: not %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-cir 
%t/src-verifier.cir -o - 2>&1 \
 // RUN:   | FileCheck %s --check-prefix=SRC-VERIFIER 
--implicit-check-not=error:
 // SRC-VERIFIER: error: {{.*}}src.c:2:3: 'cir.return' op returns '!cir.void' 
but enclosing function returns '!cir.int<s, 32>'

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to