summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/pr9965.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/pr9965.cpp')
-rw-r--r--test/CodeGenCXX/pr9965.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenCXX/pr9965.cpp b/test/CodeGenCXX/pr9965.cpp
new file mode 100644
index 0000000..b87fcf4
--- /dev/null
+++ b/test/CodeGenCXX/pr9965.cpp
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -std=c++0x -emit-llvm -o - %s | FileCheck %s
+template<typename T>
+struct X
+{
+ X() = default;
+};
+
+X<int> x;
+// CHECK: define internal void @__cxx_global_var_init()
+// CHECK: call void @_ZN1XIiEC1Ev
+// CHECK: define linkonce_odr void @_ZN1XIiEC1Ev
+// CHECK: define linkonce_odr void @_ZN1XIiEC2Ev
OpenPOWER on IntegriCloud