brintos

brintos / llvm-project-archived public Read only

0
0
Text · 396 B · f609636 Raw
17 lines · plain
1; Check that we can execute a program that makes a single reference to an2; external linkage global variable that is initialized to a non-zero value.3;4; Failure may indicate a problem with data-section or GOT handling.5;6; RUN: %lli %s7 8@X = global i32 19 10define i32 @main(i32 %argc, i8** %argv) {11entry:12  %0 = load i32, i32* @X13  %1 = icmp ne i32 %0, 114  %2 = zext i1 %1 to i3215  ret i32 %216}17