1 ; RUN: llvm-link -S -o - %p/pr21374.ll %p/Inputs/pr21374.ll | FileCheck %s
2 ; RUN: llvm-link -S -o - %p/Inputs/pr21374.ll %p/pr21374.ll | FileCheck %s
4 ; RUN: llvm-as -o %t1.bc %p/pr21374.ll
5 ; RUN: llvm-as -o %t2.bc %p/Inputs/pr21374.ll
7 ; RUN: llvm-link -S -o - %t1.bc %t2.bc | FileCheck %s
8 ; RUN: llvm-link -S -o - %t2.bc %t1.bc | FileCheck %s
10 ; Test that we get the same result with or without lazy loading.
12 ; CHECK: %foo = type { i8* }
13 ; CHECK-DAG: bitcast i32* null to %foo*
14 ; CHECK-DAG: define void @g(%foo* %x)
18 bitcast i32* null to %foo*