You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
747 B
17 lines
747 B
// Check that no alias is emitted when the vtable is already dso_local. This can
|
|
// happen if the class is hidden.
|
|
|
|
// RUN: %clang_cc1 %s -triple=aarch64-unknown-fuchsia -S -o - -emit-llvm -fexperimental-relative-c++-abi-vtables | FileCheck %s --check-prefix=DEFAULT-VIS
|
|
// RUN: %clang_cc1 %s -triple=aarch64-unknown-fuchsia -S -o - -emit-llvm -fexperimental-relative-c++-abi-vtables -fvisibility hidden | FileCheck %s --check-prefix=HIDDEN-VIS
|
|
|
|
// DEFAULT-VIS: @_ZTV1A.local = private unnamed_addr constant
|
|
// DEFAULT-VIS: @_ZTV1A = unnamed_addr alias { [3 x i32] }, { [3 x i32] }* @_ZTV1A.local
|
|
// HIDDEN-VIS-NOT: @_ZTV1A.local
|
|
// HIDDEN-VIS: @_ZTV1A = hidden unnamed_addr constant
|
|
class A {
|
|
public:
|
|
virtual void func();
|
|
};
|
|
|
|
void A::func() {}
|