Link declaration lazily.
[oota-llvm.git] / test / Linker / 2003-04-23-LinkOnceLost.ll
1 ; RUN: echo " define linkonce void @foo() { ret void } " > %t.ll
2 ; RUN: llvm-link %s %t.ll -S | FileCheck %s
3 ; CHECK: linkonce{{.*}}foo
4
5 declare void @foo()
6
7 define void @use_foo() {
8   call void @foo()
9   ret void
10 }