[clang] [clang][test][NFC] Fix missing colons in FileCheck directives (PR #235342)
Pranjal Srivastava via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 24 13:29:35 PDT 2026
https://github.com/ipranjalks updated https://github.com/llvm/llvm-project/pull/235342
>From 7051729190dca281489a90e58cf6f28efad1929a Mon Sep 17 00:00:00 2001
From: Pranjal Srivastava <pranjalks at google.com>
Date: Sat, 24 Oct 2026 19:16:29 +0000
Subject: [PATCH] Fix CHECK typo
---
clang/test/AST/ast-dump-attr-type.cpp | 6 +++---
clang/test/CodeGen/constantexpr-fneg.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/clang/test/AST/ast-dump-attr-type.cpp b/clang/test/AST/ast-dump-attr-type.cpp
index 78a3b660bbe602..07337aaaf25901 100644
--- a/clang/test/AST/ast-dump-attr-type.cpp
+++ b/clang/test/AST/ast-dump-attr-type.cpp
@@ -19,6 +19,6 @@ using Ty1 = decltype(y);
// CHECK-NEXT: |-DeclRefExpr 0x{{[^ ]*}} <col:22> '__attribute__((address_space(3))) int *' lvalue Var 0x{{[^ ]*}} 'y' '__attribute__((address_space(3))) int *' non_odr_use_unevaluated
// CHECK-NEXT: `-PointerType 0x{{[^ ]*}} '__attribute__((address_space(3))) int *'
// CHECK-NEXT: `-AttributedType 0x{{[^ ]*}} '__attribute__((address_space(3))) int' sugar
-// CHECK-NEXT |-BuiltinType 0x{{[^ ]*}} 'int'
-// CHECK-NEXT `-QualType 0x{{[^ ]*}} '__attribute__((address_space(3))) int' __attribute__((address_space(3)))
-// CHECK-NEXT `-BuiltinType 0x{{[^ ]*}} 'int'
+// CHECK-NEXT: |-BuiltinType 0x{{[^ ]*}} 'int'
+// CHECK-NEXT: `-QualType 0x{{[^ ]*}} '__attribute__((address_space(3))) int' __attribute__((address_space(3)))
+// CHECK-NEXT: `-BuiltinType 0x{{[^ ]*}} 'int'
diff --git a/clang/test/CodeGen/constantexpr-fneg.c b/clang/test/CodeGen/constantexpr-fneg.c
index fb7a3d1a695393..bd942176baed1c 100644
--- a/clang/test/CodeGen/constantexpr-fneg.c
+++ b/clang/test/CodeGen/constantexpr-fneg.c
@@ -4,7 +4,7 @@
// Test case for PR45426. Make sure we do not crash while writing bitcode
// containing a simplify-able fneg constant expression.
//
-// CHECK-LABEL define i32 @main()
+// CHECK-LABEL: define {{.*}}i32 @main()
// CHECK: entry:
// CHECK-NEXT: %retval = alloca i32
// CHECK-NEXT: store i32 0, ptr %retval
More information about the cfe-commits
mailing list