xref: /aosp_15_r20/external/llvm/test/Linker/2003-04-23-LinkOnceLost.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
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
5declare void @foo()
6
7define void @use_foo() {
8  call void @foo()
9  ret void
10}
11