From 45b533945f0851ec234ca846e1af5ee1e4df0b6e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 30 Dec 2015 11:49:41 +0000 Subject: Vendor import of clang trunk r256633: https://llvm.org/svn/llvm-project/cfe/trunk@256633 --- test/CodeGenCXX/new.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'test/CodeGenCXX/new.cpp') diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp index c8e0acba7b05..6d6f70138616 100644 --- a/test/CodeGenCXX/new.cpp +++ b/test/CodeGenCXX/new.cpp @@ -371,12 +371,9 @@ namespace builtins { // CHECK-DAG: attributes [[ATTR_NOBUILTIN]] = {{[{].*}} nobuiltin {{.*[}]}} // CHECK-DAG: attributes [[ATTR_NOBUILTIN_NOUNWIND]] = {{[{].*}} nobuiltin nounwind {{.*[}]}} -// CHECK: attributes [[ATTR_NOUNWIND]] = -// CHECK-NOT: builtin -// CHECK-NOT: attributes -// CHECK: nounwind -// CHECK-NOT: builtin -// CHECK: attributes - // CHECK-DAG: attributes [[ATTR_BUILTIN_NEW]] = {{[{].*}} builtin {{.*[}]}} // CHECK-DAG: attributes [[ATTR_BUILTIN_DELETE]] = {{[{].*}} builtin {{.*[}]}} + +// 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])*$}} -- cgit v1.3