brintos

brintos / llvm-project-archived public Read only

0
0
Text · 543 B · f92db13 Raw
18 lines · plain
1; RUN: lli -jit-kind=orc-lazy -extra-module %p/Inputs/hidden-definitions.ll %s2; RUN: not lli -jit-kind=orc-lazy -jd libFoo -extra-module %p/Inputs/hidden-definitions.ll %s3;4; Check that hidden symbols in another module are visible when the module is5; added to the same JITDylib, and not visible if it is added to a different6; JITDylib.7 8@bar = external global i329declare i32 @foo()10 11define i32 @main(i32 %argc, ptr nocapture readnone %argv) {12entry:13  %0 = call i32() @foo()14  %1 = load i32, ptr @bar15  %2 = add i32 %0, %116  ret i32 %217}18