brintos

brintos / llvm-project-archived public Read only

0
0
Text · 366 B · 0dbe240 Raw
22 lines · plain
1; RUN: lli -jit-kind=orc-lazy %s2;3; Test handling of global aliases for function and variables.4 5@x = global i32 42, align 46@y = alias i32, ptr @x7 8define i32 @foo() {9entry:10  %0 = load i32, ptr @y, align 411  ret i32 %012}13 14@bar = alias i32(), ptr @foo15 16define i32 @main(i32 %argc, ptr %argv) {17entry:18  %0 = call i32() @bar()19  %1 = sub i32 %0, 4220  ret i32 %121}22