diff options
Diffstat (limited to 'test/Linker/funcimport2.ll')
| -rw-r--r-- | test/Linker/funcimport2.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Linker/funcimport2.ll b/test/Linker/funcimport2.ll new file mode 100644 index 0000000000000..bf8f96b78da01 --- /dev/null +++ b/test/Linker/funcimport2.ll @@ -0,0 +1,17 @@ +; RUN: opt -module-summary %s -o %t1.bc +; RUN: opt -module-summary %p/Inputs/funcimport2.ll -o %t2.bc +; RUN: llvm-lto -thinlto -o %t3 %t1.bc %t2.bc +; RUN: llvm-link -import=bar:%t2.bc %t1.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s + +; CHECK: define available_externally hidden void @foo() { +define available_externally hidden void @foo() { + ret void +} + +declare void @bar() + +define void @caller() { + call void @bar() + call void @foo() + ret void +} |
