llvm-for-llvmta/tools/clang/test/CodeGen/push-hidden-visibility-subc...

21 lines
364 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple x86_64-linux-unknown -emit-llvm %s -o - | FileCheck %s
#pragma GCC visibility push(hidden)
struct Base {
virtual ~Base() = default;
virtual void* Alloc() = 0;
};
class Child : public Base {
public:
Child() = default;
void* Alloc();
};
void test() {
Child x;
}
// CHECK: @_ZTV5Child = external hidden unnamed_addr constant