4 if [ `which gsed 2> /dev/null` ] ; then
12 ZZ
=`echo $TEST_TYPE1 | grep "\&"`
16 if [ $T1_REF -eq 0 ]; then
17 T1_NO_REF
=`echo $TEST_TYPE1 | cut -d '\' -f 1`
18 INIT_LOCS
=", $T1_NO_REF V_0"
19 INIT_IL
="ldloca.s 1\n\tstloc.0"
22 TEST_FILE
=`echo ${TEST_VALIDITY}_${TEST_NAME} | $SED -e 's/ /_/g' -e 's/\./_/g' -e 's/&/mp/g' -e 's/\[/_/g' -e 's/\]/_/g'`_generated.il
24 $SED -e "s/TYPE1/${TEST_TYPE1}/g" -e "s/VALIDITY/${TEST_VALIDITY}/g" -e "s/TYPE2/${TEST_TYPE2}/g" -e "s/INIT_LOCS/${INIT_LOCS}/g" -e "s/INIT_IL/${INIT_IL}/g"> $TEST_FILE <<//EOF
26 .assembly extern mscorlib
29 .publickeytoken
= (B7
7A
5C
56 19 34 E0
89 ) // .z\V
.4..
32 .assembly
'ldobj_test'
34 .
hash algorithm
0x00008004
41 .class Class extends
[mscorlib
]System.Object
43 .field public int32 valid
46 .class public Template\
`1<T>
47 extends [mscorlib]System.Object
51 .class sealed public StructTemplate\`1<T
>
52 extends
[mscorlib
]System.ValueType
57 .class sealed public StructTemplate2\
`1<T>
58 extends [mscorlib]System.ValueType
64 .class public auto ansi sealed MyStruct
65 extends [mscorlib]System.ValueType
67 .field public int32 foo
71 .class public auto ansi sealed MyStruct2
72 extends [mscorlib]System.ValueType
74 .field public int32 foo
77 .method public static int32 Main ()
81 .locals init (TYPE1 V_0 INIT_LOCS)
84 ldobj TYPE2 // VALIDITY