1 ; RUN: lli -jit-kind=mcjit -extra-module %p/Inputs/weak-function-2.ll %s
2 ; UNSUPPORTED: uses_COFF
4 ; Check that functions in two different modules agree on the address of weak
6 ; Testing on COFF platforms is disabled as COFF has no representation of 'weak'
9 define weak i32 @baz() {
16 ret i8* bitcast (i32 ()* @baz to i8*)
21 define i32 @main(i32 %argc, i8** %argv) {
23 %call = tail call i8* @foo()
24 %call1 = tail call i8* @bar()
25 %cmp = icmp ne i8* %call, %call1
26 %conv = zext i1 %cmp to i32