]> granicus.if.org Git - clang/commitdiff
removed hardcoding for attribute associated with dtor in test
authorNaomi Musgrave <nmusgrave@google.com>
Thu, 30 Jul 2015 17:59:54 +0000 (17:59 +0000)
committerNaomi Musgrave <nmusgrave@google.com>
Thu, 30 Jul 2015 17:59:54 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243672 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/sanitize-dtor-tail-call.cpp

index bfbf04dcbd584ff9c9f6917c5adf68e4d05f08c8..a92ffa289f78acea471b1f032c513d46050c3dfd 100644 (file)
@@ -14,11 +14,10 @@ struct Simple {
 
 Simple s;
 // Simple internal member is poisoned by compiler-generated dtor
-// CHECK-LABEL: define {{.*}}SimpleD2Ev
+// CHECK: define {{.*}}SimpleD2Ev{{.*}} [[ATTRIBUTE:#[0-9]]]
 // CHECK: {{^ *}}call void @__sanitizer_dtor_callback
 // CHECK-NOT: tail call void @__sanitizer_dtor_callback
 // CHECK: ret void
 
 // Destructor does not emit any tail calls
-// CHECK: attributes #1 = {{.*("disable-tail-calls"="true").*}}
-// CHECK: }{{$}}
+// CHECK: attributes [[ATTRIBUTE]] = {{.*}}"disable-tail-calls"="true"