Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
Add a test.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
espindola committed Mar 22, 2018
1 parent df9f4af commit 8a36024
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/CodeGenCXX/rtti-hidden.cpp
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 8a36024

Please sign in to comment.