summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/debug-info-use-after-free.cpp
diff options
context:
space:
mode:
authorCharles Li <charles.li@sony.com>2017-02-24 22:22:05 +0000
committerCharles Li <charles.li@sony.com>2017-02-24 22:22:05 +0000
commitccb64f9e8de2c576b8c5fbace40af378901b0493 (patch)
tree3d953787d5f54fcdd91596dce85d857bf9b0e2fc /test/CodeGenCXX/debug-info-use-after-free.cpp
parent0002bae4835445aad74b973328771dc11f9bc2e5 (diff)
[Test] Make Lit tests C++11 compatible #9
[Test] Make Lit tests C++11 compatible #9 Differential Revision: https://reviews.llvm.org/D20710 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-use-after-free.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-use-after-free.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-use-after-free.cpp b/test/CodeGenCXX/debug-info-use-after-free.cpp
index f87763b905..1001248897 100644
--- a/test/CodeGenCXX/debug-info-use-after-free.cpp
+++ b/test/CodeGenCXX/debug-info-use-after-free.cpp
@@ -1,4 +1,6 @@
// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple -emit-llvm-only %s
+// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple -emit-llvm-only -std=c++98 %s
+// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple -emit-llvm-only -std=c++11 %s
// Check that we don't crash.
// PR12305, PR12315
@@ -233,6 +235,7 @@ template < class > class scoped_ptr {
namespace {
class
AAA {
+protected:
virtual ~
AAA () {
}};