1 ; RUN: lli -jit-kind=orc-lazy -extra-module %p/Inputs/weak-function-2.ll %s
3 ; Check that functions in two different modules agree on the address of weak
6 define linkonce_odr i32 @baz() {
13 ret i8* bitcast (i32 ()* @baz to i8*)
18 define i32 @main(i32 %argc, i8** %argv) {
20 %call = tail call i8* @foo()
21 %call1 = tail call i8* @bar()
22 %cmp = icmp ne i8* %call, %call1
23 %conv = zext i1 %cmp to i32