summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/pr9965.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/pr9965.cpp')
-rw-r--r--test/CodeGenCXX/pr9965.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGenCXX/pr9965.cpp b/test/CodeGenCXX/pr9965.cpp
index 145fd4e424f46..0d267ff70372f 100644
--- a/test/CodeGenCXX/pr9965.cpp
+++ b/test/CodeGenCXX/pr9965.cpp
@@ -1,8 +1,10 @@
// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
+struct A { A(); };
template<typename T>
-struct X
+struct X : A // default constructor is not trivial
{
X() = default;
+ ~X() {} // not a literal type
};
X<int> x;