summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/virt-template-vtable.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-03 07:24:12 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-03 07:24:12 +0000
commit5696d6d316ed7a66aa405450b7991a8eee8937b8 (patch)
tree951fc7cbac949009c4c4b76d079395e16df96f50 /clang/test/CodeGenCXX/virt-template-vtable.cpp
parent42b8c30de6c36b415d3ae7b6f962d3e84c936882 (diff)
downloadbcm5719-llvm-5696d6d316ed7a66aa405450b7991a8eee8937b8.tar.gz
bcm5719-llvm-5696d6d316ed7a66aa405450b7991a8eee8937b8.zip
Emit weak vtables of non-template classes with hidden visibility.
llvm-svn: 110107
Diffstat (limited to 'clang/test/CodeGenCXX/virt-template-vtable.cpp')
-rw-r--r--clang/test/CodeGenCXX/virt-template-vtable.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/virt-template-vtable.cpp b/clang/test/CodeGenCXX/virt-template-vtable.cpp
index b968f38c826..b9558283127 100644
--- a/clang/test/CodeGenCXX/virt-template-vtable.cpp
+++ b/clang/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 hidden constant
+// CHECK: @_ZTV1AIlE = weak_odr constant
+// CHECK: @_ZTV1AIsE = weak_odr constant
// CHECK: @_ZTV1AIiE = weak_odr constant
OpenPOWER on IntegriCloud