llvm-6502/test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll
2006-12-02 04:23:10 +00:00

11 lines
208 B
LLVM

; 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
}