2022-04-07 18:03:55 +08:00
|
|
|
// RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -triple mipsel--linux-gnu -mno-constructor-aliases -mconstructor-aliases -o - %s | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -triple mipsel--linux-gnu -mconstructor-aliases -mno-constructor-aliases -o - %s | FileCheck %s --check-prefix=NO-ALIAS
|
2013-03-19 23:03:47 +08:00
|
|
|
|
|
|
|
// The target attribute code used to get confused with aliases. Make sure
|
|
|
|
// we don't crash when an alias is used.
|
|
|
|
|
|
|
|
struct B {
|
|
|
|
B();
|
|
|
|
};
|
|
|
|
B::B() {
|
|
|
|
}
|
|
|
|
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: @_ZN1BC1Ev ={{.*}} unnamed_addr alias void (%struct.B*), void (%struct.B*)* @_ZN1BC2Ev
|
2021-12-01 07:11:57 +08:00
|
|
|
// NO-ALIAS-NOT: @_ZN1BC1Ev ={{.*}} unnamed_addr alias void (%struct.B*), void (%struct.B*)* @_ZN1BC2Ev
|