4 if [ `which gsed 2> /dev/null` ] ; then
15 } catch [mscorlib]System.NullReferenceException {
19 if [ "$TEST_BLOCK" = "catch" ]; then
22 } catch [mscorlib]System.NullReferenceException {"
26 elif [ "$TEST_BLOCK" = "filter" ]; then
37 elif [ "$TEST_BLOCK" = "handler" ]; then
48 elif [ "$TEST_BLOCK" = "finally" ]; then
55 elif [ "$TEST_BLOCK" = "fault" ]; then
65 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
67 TEST_TYPE1=`echo $TEST_TYPE1 | $SED -s 's/&/\\\&/'`
69 $SED -e "s/OPCODE/${TEST_OP}/g" -e "s/VALIDITY/${TEST_VALIDITY}/g" -e "s/INIT/${TEST_INIT}/g" > $TEST_FILE <<//EOF
71 // VALIDITY CIL which breaks the ECMA-335 rules.
72 // this CIL should fail verification by a conforming CLI verifier.
74 .assembly '${TEST_NAME}_generated'
76 .hash algorithm 0x00008004
80 .class public Template\`1<T>
81 extends [mscorlib]System.Object
85 .class public auto ansi sealed MyStruct
86 extends [mscorlib]System.ValueType
88 .field public int32 valid
91 .method public static int32 Main() cil managed
95 .locals init (native int V_0, int32 V_1)