Skip to content

Commit b2795dc

Browse files
ghehglanza
authored andcommitted
[CIR][NFC][Testing] Fix test failure (#963)
as title. Base on my experience of [this type of test(https://github.com/llvm/clangir/blob/a7ac2b4e2055e169d9f556abf5821a1ccab666cd/clang/test/CIR/CodeGen/attribute-annotate-multiple.cpp#L51), The number of characters varies in this line as it's about full file path which changes during environment.
1 parent 24b361c commit b2795dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CIR/CodeGen/annotations-var.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: FileCheck --input-file=%t.ll %s -check-prefix=LLVM
55

66
// LLVM-DAG: @.str.annotation = private unnamed_addr constant [15 x i8] c"localvar_ann_0\00", section "llvm.metadata"
7-
// LLVM-DAG: @.str.1.annotation = private unnamed_addr constant [{{.*}} x i8] c"{{.*}}annotations-var.c\00", section "llvm.metadata"
7+
// LLVM-DAG: @.str.1.annotation = private unnamed_addr constant [{{[0-9]+}} x i8] c"{{.*}}annotations-var.c\00", section "llvm.metadata"
88
// LLVM-DAG: @.str.2.annotation = private unnamed_addr constant [15 x i8] c"localvar_ann_1\00", section "llvm.metadata"
99

1010
void local(void) {

0 commit comments

Comments
 (0)