Skip to content
Snippets Groups Projects
Commit 325791ff authored by Naomi Musgrave's avatar Naomi Musgrave
Browse files

Testing to verify function attribute disable-tail-calls applied to destructor

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243671 91177308-0d34-0410-b5e6-96231b3b80d8
parent 000dd871
No related branches found
No related tags found
No related merge requests found
// Test -fsanitize-memory-use-after-dtor
// RUN: %clang_cc1 -fsanitize=memory -fsanitize-memory-use-after-dtor -disable-llvm-optzns -std=c++11 -triple=x86_64-pc-linux -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -O1 -fsanitize=memory -fsanitize-memory-use-after-dtor -disable-llvm-optzns -std=c++11 -triple=x86_64-pc-linux -emit-llvm -o - %s | FileCheck %s
struct Simple {
......@@ -17,3 +18,7 @@ Simple s;
// 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: }{{$}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment