r328263 - Add a test.

Rafael Espindola via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 22 15:57:48 PDT 2018


Author: rafael
Date: Thu Mar 22 15:57:48 2018
New Revision: 328263

URL: http://llvm.org/viewvc/llvm-project?rev=328263&view=rev
Log:
Add a test.

This would have found the regression in r328238.

Added:
    cfe/trunk/test/CodeGenCXX/rtti-hidden.cpp

Added: cfe/trunk/test/CodeGenCXX/rtti-hidden.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/rtti-hidden.cpp?rev=328263&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/rtti-hidden.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/rtti-hidden.cpp Thu Mar 22 15:57:48 2018
@@ -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;




More information about the cfe-commits mailing list