4 if [ `which gsed 2> /dev/null` ] ; then
13 ZZ
=`echo $TEST_TYPE1 | grep "\&"`
17 if [ "$T1_REF" == "0" ]; then
18 T1_NO_REF
=`echo $TEST_TYPE1 | cut -d '\' -f 1`
19 INIT_LOCS
=", $T1_NO_REF V_0"
20 INIT_IL
="ldloca.s 1\n\tstloc.0"
23 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
25 $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" -e "s/EXTRA/${TEST_EXTRA}/g"> $TEST_FILE <<//EOF
27 .assembly extern mscorlib
30 .publickeytoken
= (B7
7A
5C
56 19 34 E0
89 ) // .z\V
.4..
33 .assembly
'initobj_test'
35 .
hash algorithm
0x00008004
42 .class Class extends
[mscorlib
]System.Object
44 .field public int32 valid
47 .class public Template\
`1<T>
48 extends [mscorlib]System.Object
52 .class sealed public StructTemplate\`1<T
>
53 extends
[mscorlib
]System.ValueType
58 .class sealed public StructTemplate2\
`1<T>
59 extends [mscorlib]System.ValueType
65 .class public auto ansi sealed MyStruct
66 extends [mscorlib]System.ValueType
68 .field public int32 foo
72 .class public auto ansi sealed MyStruct2
73 extends [mscorlib]System.ValueType
75 .field public int32 foo
78 .method public static int32 Main ()
82 .locals init (TYPE1 V_0 INIT_LOCS)
86 initobj TYPE2 // VALIDITY