4 if [ `which gsed 2> /dev/null` ] ; then
15 if [ "x$TEST_TYPE_0" = "x" ] ; then
19 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
21 TEST_TYPE1=`echo $TEST_TYPE1 | $SED -s 's/&/\\\&/'`
22 $SED -e "s/VALIDITY/${TEST_VALIDITY}/g" -e "s/TYPE_0/${TEST_TYPE_0}/g"> $TEST_FILE <<//EOF
24 // VALIDITY CIL which breaks the ECMA-335 rules.
25 // this CIL should fail verification by a conforming CLI verifier.
27 .assembly '${TEST_NAME}_generated'
29 .hash algorithm 0x00008004
33 .class explicit sealed Overlapped extends [mscorlib]System.ValueType
35 .field [${TEST_POS_0}] public TYPE_0 intVal
36 .field [${TEST_POS_1}] public object objVal
37 .field [${TEST_POS_2}] public int32 intVal2
39 .method public hidebysig specialname rtspecialname instance default void '.ctor' () cil managed
46 .method public static int32 Main() cil managed
50 .locals init (Overlapped val)