brintos

brintos / llvm-project-archived public Read only

0
0
Text · 487 B · 29b7e5f Raw
18 lines · plain
1; RUN: llc -filetype=obj -o %t1.o %p/Inputs/obj-weak-non-materialization-1.ll2; RUN: llc -filetype=obj -o %t2.o %p/Inputs/obj-weak-non-materialization-2.ll3; RUN: lli -jit-kind=orc-lazy -extra-object %t1.o -extra-object %t2.o %s4;5; Check that %t1.o's version of the weak symbol X is used, even though %t2.o is6; materialized first.7 8@X = external global i329 10declare void @foo()11 12define i32 @main(i32 %argc, ptr %argv) {13entry:14  call void @foo()15  %0 = load i32, ptr @X16  ret i32 %017}18