1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-27 22:12:47 +01:00
llvm-mirror/test/Regression/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll
Chris Lattner fbd9dc8c44 New testcase
llvm-svn: 3554
2002-08-30 23:22:15 +00:00

14 lines
230 B
LLVM

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