27 lines · plain
1# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2# This test ensures that an error is reported when an undefined global value is3# used.4 5--- |6 7 @G = external global i328 9 define i32 @inc() {10 entry:11 %a = load i32, ptr @G12 %b = add i32 %a, 113 ret i32 %b14 }15 16...17---18name: inc19body: |20 bb.0.entry:21 ; CHECK: [[@LINE+1]]:32: use of undefined global value '@GG'22 $rax = MOV64rm $rip, 1, _, @GG, _23 $eax = MOV32rm $rax, 1, _, 0, _24 $eax = INC32r $eax25 RET64 $eax26...27