mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
For PR1122:
Test the upgradability of nested type definitions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3ff5ada8a
commit
c04dc69095
14
test/Assembler/2007-01-26-PR1122.ll
Normal file
14
test/Assembler/2007-01-26-PR1122.ll
Normal file
@ -0,0 +1,14 @@
|
||||
; PR1122
|
||||
; Make sure llvm-upgrade can upgrade this.
|
||||
; RUN: llvm-upgrade < %s > /dev/null
|
||||
%arraytype_Char_1 = type { int, [0 x sbyte] }
|
||||
%structtype_rpy_string = type { int, %arraytype_Char_1 }
|
||||
|
||||
%RPyString = type %structtype_rpy_string ;**doesn't work
|
||||
;%RPyString = type { int, %arraytype_Char_1 } ;**works
|
||||
|
||||
sbyte* %RPyString_AsString(%RPyString* %structstring) {
|
||||
%source1ptr = getelementptr %RPyString* %structstring, int 0, uint 1, uint 1
|
||||
%source1 = cast [0 x sbyte]* %source1ptr to sbyte*
|
||||
ret sbyte* %source1
|
||||
}
|
Loading…
Reference in New Issue
Block a user