From 8552bbd03e10945922d17ded39f16d775cbb9c2b Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 14 Aug 2015 00:16:05 +0000 Subject: [PATCH] This test was still failing for me after r244925, fix it harder. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244991 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/new.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp index 6ea5af37bb..6d6f701386 100644 --- a/test/CodeGenCXX/new.cpp +++ b/test/CodeGenCXX/new.cpp @@ -374,9 +374,6 @@ namespace builtins { // CHECK-DAG: attributes [[ATTR_BUILTIN_NEW]] = {{[{].*}} builtin {{.*[}]}} // CHECK-DAG: attributes [[ATTR_BUILTIN_DELETE]] = {{[{].*}} builtin {{.*[}]}} -// CHECK: attributes [[ATTR_NOUNWIND]] = -// CHECK-NOT: builtin -// CHECK-NOT: attributes -// CHECK: nounwind -// CHECK-NOT: builtin -// CHECK-NOT: attributes +// The ([^b}|...) monstrosity is matching a character that's not the start of 'builtin'. +// Add more letters if this matches some other attribute. +// CHECK-DAG: attributes [[ATTR_NOUNWIND]] = {{([^b]|b[^u]|bu[^i]|bui[^l])*}} nounwind {{([^b]|b[^u]|bu[^i]|bui[^l])*$}} -- 2.40.0