25 lines · plain
1; RUN: llvm-link %s %S/Inputs/alias-2.ll -S -o - | FileCheck %s2; RUN: llvm-link %S/Inputs/alias-2.ll %s -S -o - | FileCheck %s3 4; Test the fix for PR26152, where A from the second module is5; erroneously renamed to A.1 and not linked to the declaration from6; the first module7 8@C = alias void (), ptr @A9 10define void @D() {11 call void @C()12 ret void13}14 15define void @A() {16 ret void17}18 19; CHECK-DAG: @C = alias void (), ptr @A20; CHECK-DAG: define void @B()21; CHECK-DAG: call void @A()22; CHECK-DAG: define void @D()23; CHECK-DAG: call void @C()24; CHECK-DAG: define void @A()25