Author: Pranjal Srivastava Date: 2026-10-25T08:29:02Z New Revision: e892aa6fb133133590d86d9d1b89615c11bf8abe
URL: https://github.com/llvm/llvm-project/commit/e892aa6fb133133590d86d9d1b89615c11bf8abe DIFF: https://github.com/llvm/llvm-project/commit/e892aa6fb133133590d86d9d1b89615c11bf8abe.diff LOG: [clang][test][NFC] Fix missing colons in FileCheck directives (#235342) The `:` was missing from: - `CHECK-NEXT` in `clang/test/AST/ast-dump-attr-type.cpp`. - `CHECK-LABEL` in `clang/test/CodeGen/constantexpr-fneg.c`. Also, in `clang/test/CodeGen/constantexpr-fneg.c`, adding the missing `:` to `CHECK-LABEL` exposed that `clang -cc` (without an explicit `-triple`) emits `define dso_local i32 @main()` on Linux, so `{{.*}}` is added to match across targets. Assisted-by: Gemini Added: Modified: clang/test/AST/ast-dump-attr-type.cpp clang/test/CodeGen/constantexpr-fneg.c Removed: ################################################################################ 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 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
