]> granicus.if.org Git - clang/commitdiff
This test was still failing for me after r244925, fix it harder.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 14 Aug 2015 00:16:05 +0000 (00:16 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 14 Aug 2015 00:16:05 +0000 (00:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244991 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/new.cpp

index 6ea5af37bb52bb407bf7177b55f8388558582142..6d6f70138616ee887c82436d5b14b232750c152b 100644 (file)
@@ -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])*$}}