1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -triple mipsel--linux-gnu -mconstructor-aliases -o - %s | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // The target attribute code used to get confused with aliases. Make sure 4*f4a2713aSLionel Sambuc // we don't crash when an alias is used. 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc struct B { 7*f4a2713aSLionel Sambuc B(); 8*f4a2713aSLionel Sambuc }; B()9*f4a2713aSLionel SambucB::B() { 10*f4a2713aSLionel Sambuc } 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc // CHECK: @_ZN1BC1Ev = alias void (%struct.B*)* @_ZN1BC2Ev 13