Mercurial > hg > CbC > CbC_llvm
view llvm/test/ExecutionEngine/OrcLazy/weak-non-materialization.ll @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 1f2b6ac9f198 |
line wrap: on
line source
; RUN: llc -filetype=obj -o %t1.o %p/Inputs/obj-weak-non-materialization-1.ll ; RUN: llc -filetype=obj -o %t2.o %p/Inputs/obj-weak-non-materialization-2.ll ; RUN: lli -jit-kind=orc-lazy -extra-object %t1.o -extra-object %t2.o %s ; ; Check that %t1.o's version of the weak symbol X is used, even though %t2.o is ; materialized first. @X = external global i32 declare void @foo() define i32 @main(i32 %argc, i8** %argv) { entry: call void @foo() %0 = load i32, i32* @X ret i32 %0 }