llvm-6502/test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll

14 lines
230 B
LLVM
Raw Normal View History

; RUN: if as < %s | opt -sccp | dis | grep '%X'
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
%G = uninitialized global [40x int]
implementation
int* %test() {
%X = getelementptr [40x int]* %G, uint 0, uint 0
ret int* %X
}