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

11 lines
208 B
LLVM
Raw Normal View History

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