From 805e11b38c54f3175b6f3bf8f99560832358dc50 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 18 Sep 2017 22:01:18 +0000 Subject: [PATCH] Fix failing ASAN test git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@313576 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/language.support/cxa_deleted_virtual.pass.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/libcxx/language.support/cxa_deleted_virtual.pass.cpp b/test/libcxx/language.support/cxa_deleted_virtual.pass.cpp index e71c51158..39e884b6c 100644 --- a/test/libcxx/language.support/cxa_deleted_virtual.pass.cpp +++ b/test/libcxx/language.support/cxa_deleted_virtual.pass.cpp @@ -11,5 +11,8 @@ // Test exporting the symbol: "__cxa_deleted_virtual" in macosx -struct S { virtual void f() = delete; }; -int main() { new S; } +struct S { virtual void f() = delete; virtual ~S() {} }; +int main() { + S *s = new S; + delete s; +}