1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link %s %S/Inputs/alias-2.ll -S -o - | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link %S/Inputs/alias-2.ll %s -S -o - | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; Test the fix for PR26152, where A from the second module is 5*9880d681SAndroid Build Coastguard Worker; erroneously renamed to A.1 and not linked to the declaration from 6*9880d681SAndroid Build Coastguard Worker; the first module 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker@C = alias void (), void ()* @A 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdefine void @D() { 11*9880d681SAndroid Build Coastguard Worker call void @C() 12*9880d681SAndroid Build Coastguard Worker ret void 13*9880d681SAndroid Build Coastguard Worker} 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerdefine void @A() { 16*9880d681SAndroid Build Coastguard Worker ret void 17*9880d681SAndroid Build Coastguard Worker} 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: @C = alias void (), void ()* @A 20*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: define void @B() 21*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: call void @A() 22*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: define void @D() 23*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: call void @C() 24*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: define void @A() 25