summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/virt-template-vtable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/virt-template-vtable.cpp')
-rw-r--r--test/CodeGenCXX/virt-template-vtable.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGenCXX/virt-template-vtable.cpp b/test/CodeGenCXX/virt-template-vtable.cpp
index b968f38..d60cfb9 100644
--- a/test/CodeGenCXX/virt-template-vtable.cpp
+++ b/test/CodeGenCXX/virt-template-vtable.cpp
@@ -10,4 +10,13 @@ class B : A<int> {
};
B::B() {}
+template class A<long>;
+
+extern template class A<short>;
+template class A<short>;
+
+
+// CHECK: @_ZTV1B = weak_odr constant
+// CHECK: @_ZTV1AIlE = weak_odr constant
+// CHECK: @_ZTV1AIsE = weak_odr constant
// CHECK: @_ZTV1AIiE = weak_odr constant
OpenPOWER on IntegriCloud