[llvm-commits] CVS: llvm/test/Assembler/2007-01-26-PR1122.ll

Reid Spencer reid at x10sys.com
Fri Jan 26 00:44:54 PST 2007



Changes in directory llvm/test/Assembler:

2007-01-26-PR1122.ll added (r1.1)
---
Log message:

For PR1122: http://llvm.org/PR1122 :
Test the upgradability of nested type definitions.


---
Diffs of the changes:  (+14 -0)

 2007-01-26-PR1122.ll |   14 ++++++++++++++
 1 files changed, 14 insertions(+)


Index: llvm/test/Assembler/2007-01-26-PR1122.ll
diff -c /dev/null llvm/test/Assembler/2007-01-26-PR1122.ll:1.1
*** /dev/null	Fri Jan 26 02:44:24 2007
--- llvm/test/Assembler/2007-01-26-PR1122.ll	Fri Jan 26 02:44:14 2007
***************
*** 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
+ }






More information about the llvm-commits mailing list