1 ; RUN: lli -jit-kind=orc-lazy -extra-module %p/Inputs/hidden-definitions.ll %s
2 ; RUN: not lli -jit-kind=orc-lazy -jd libFoo -extra-module %p/Inputs/hidden-definitions.ll %s
4 ; Check that hidden symbols in another module are visible when the module is
5 ; added to the same JITDylib, and not visible if it is added to a different
8 @bar = external global i32
11 define i32 @main(i32 %argc, i8** nocapture readnone %argv) {
13 %0 = call i32() @foo()
14 %1 = load i32, i32* @bar