mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
eabb4950bd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3554 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
230 B
LLVM
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
|
|
}
|