mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eca195e7b4
commit
0746c2824f
13
test/Assembler/2003-05-08-GlobalGEPSynthesize.llx
Normal file
13
test/Assembler/2003-05-08-GlobalGEPSynthesize.llx
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: if as < %s | dis | grep cast
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
|
||||
%GlobalArray = global [1 x int] [ int 0 ] ; <[1 x int]*> [#uses=1]
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
int* %foo(...) {
|
||||
ret int* cast (long add (long cast ([1 x int]* %GlobalArray to long), long -4) to int*)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user