This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
17 lines
746 B
C++
17 lines
746 B
C++
// Check that no alias is emitted when the vtable is already dso_local. This can
|
|
// happen if the class is hidden.
|
|
|
|
// RUN: %clang_cc1 -no-opaque-pointers %s -triple=aarch64-unknown-fuchsia -S -o - -emit-llvm -fhalf-no-semantic-interposition | FileCheck %s --check-prefix=DEFAULT-VIS
|
|
// RUN: %clang_cc1 -no-opaque-pointers %s -triple=aarch64-unknown-fuchsia -S -o - -emit-llvm -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() {}
|