[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / test / CodeGenCXX / RelativeVTablesABI / no-alias-when-dso-local.cpp
blobb2013b34948ec584f2a4ed9971bba0ae16dbe331
1 // Check that no alias is emitted when the vtable is already dso_local. This can
2 // happen if the class is hidden.
4 // RUN: %clang_cc1 %s -triple=aarch64-unknown-fuchsia -S -o - -emit-llvm -fhalf-no-semantic-interposition | FileCheck %s --check-prefix=DEFAULT-VIS
5 // RUN: %clang_cc1 %s -triple=aarch64-unknown-fuchsia -S -o - -emit-llvm -fvisibility=hidden | FileCheck %s --check-prefix=HIDDEN-VIS
7 // DEFAULT-VIS: @_ZTV1A.local = private unnamed_addr constant
8 // DEFAULT-VIS: @_ZTV1A ={{.*}} unnamed_addr alias { [3 x i32] }, ptr @_ZTV1A.local
9 // HIDDEN-VIS-NOT: @_ZTV1A.local
10 // HIDDEN-VIS: @_ZTV1A = hidden unnamed_addr constant
11 class A {
12 public:
13 virtual void func();
16 void A::func() {}