From 5f02c308e68d2412e2555017d4dbe3e2cc122913 Mon Sep 17 00:00:00 2001 From: John Brawn Date: Wed, 21 Apr 2021 13:44:54 +0100 Subject: [PATCH] Fix clang/test/Frontend/plugin-annotate-functions.c FileCheck now gives an error when there's a check for an undefined variable, which this test does in one of its NOT checks. Fix this by being a bit looser in what the test checks. --- clang/test/Frontend/plugin-annotate-functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/Frontend/plugin-annotate-functions.c b/clang/test/Frontend/plugin-annotate-functions.c index b8baf7c..4368755 100644 --- a/clang/test/Frontend/plugin-annotate-functions.c +++ b/clang/test/Frontend/plugin-annotate-functions.c @@ -14,8 +14,8 @@ // PRAGMA: [[STR_VAR:@.+]] = private unnamed_addr constant [19 x i8] c"example_annotation\00" // PRAGMA: @llvm.global.annotations = {{.*}}@fn1{{.*}}[[STR_VAR]]{{.*}}@fn2{{.*}}[[STR_VAR]] -// NOPRAGMA-NOT: [[STR_VAR:@.+]] = private unnamed_addr constant [19 x i8] c"example_annotation\00" -// NOPRAGMA-NOT: @llvm.global.annotations = {{.*}}@fn1{{.*}}[[STR_VAR]]{{.*}}@fn2{{.*}}[[STR_VAR]] +// NOPRAGMA-NOT: {{@.+}} = private unnamed_addr constant [19 x i8] c"example_annotation\00" +// NOPRAGMA-NOT: @llvm.global.annotations = {{.*}} void fn1() { } void fn2() { } -- 2.7.4