summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/default-constructor-template-member.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/default-constructor-template-member.cpp')
-rw-r--r--test/CodeGenCXX/default-constructor-template-member.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/default-constructor-template-member.cpp b/test/CodeGenCXX/default-constructor-template-member.cpp
new file mode 100644
index 0000000..e0a17e0
--- /dev/null
+++ b/test/CodeGenCXX/default-constructor-template-member.cpp
@@ -0,0 +1,10 @@
+// RUN: clang-cc -emit-llvm %s -o - | FileCheck %s
+
+template <class T> struct A { A(); };
+struct B { A<int> x; };
+void a() {
+ B b;
+}
+// CHECK: call void @_ZN1BC1Ev
+// CHECK: define linkonce_odr void @_ZN1BC1Ev
+// CHECK: call void @_ZN1AIiEC1Ev
OpenPOWER on IntegriCloud