[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGen / push-hidden-visibility-subclass.cpp
blob82bf65309abc51a33e05ff84cbe48f92902de239
1 // RUN: %clang_cc1 -triple x86_64-linux-unknown -emit-llvm %s -o - | FileCheck %s
3 #pragma GCC visibility push(hidden)
5 struct Base {
6 virtual ~Base() = default;
7 virtual void* Alloc() = 0;
8 };
10 class Child : public Base {
11 public:
12 Child() = default;
13 void* Alloc();
16 void test() {
17 Child x;
20 // CHECK: @_ZTV5Child = external hidden unnamed_addr constant