2 ; Make sure llvm-upgrade can upgrade this.
3 ; RUN: llvm-upgrade < %s > /dev/null
4 %arraytype_Char_1 = type { int, [0 x sbyte] }
5 %structtype_rpy_string = type { int, %arraytype_Char_1 }
7 %RPyString = type %structtype_rpy_string ;**doesn't work
8 ;%RPyString = type { int, %arraytype_Char_1 } ;**works
10 sbyte* %RPyString_AsString(%RPyString* %structstring) {
11 %source1ptr = getelementptr %RPyString* %structstring, int 0, uint 1, uint 1
12 %source1 = cast [0 x sbyte]* %source1ptr to sbyte*