mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 20:46:05 +00:00

I had to reland this change in order to make the test work on windows This change should resolve https://bugs.llvm.org/show_bug.cgi?id=35022 https://reviews.llvm.org/D39627 llvm-svn: 319269
21 lines
364 B
C++
21 lines
364 B
C++
// 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
|