summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/rtti-hidden.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-03-22 22:57:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-03-22 22:57:48 +0000
commit8a360243157e3a98dbddd9067202d04fa0cefe0b (patch)
tree9c26790fc0072d95556e1effcd8bb72cc6397d69 /test/CodeGenCXX/rtti-hidden.cpp
parentdf9f4af6265b805641eff4104feea9e5984d5371 (diff)
Add a test.
This would have found the regression in r328238. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/rtti-hidden.cpp')
-rw-r--r--test/CodeGenCXX/rtti-hidden.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/rtti-hidden.cpp b/test/CodeGenCXX/rtti-hidden.cpp
new file mode 100644
index 0000000000..3ae487f580
--- /dev/null
+++ b/test/CodeGenCXX/rtti-hidden.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 %s -triple=x86_64-pc-linux -emit-llvm -o - | FileCheck %s
+
+// Test that this is not hidden.
+// CHECK: @_ZTVN10__cxxabiv120__si_class_type_infoE = external global
+
+class foo {
+ virtual void baz();
+};
+struct __attribute__((__visibility__("hidden"))) bar : public foo {};
+bar zed;