4 if [ `which gsed 2> /dev/null` ] ; then
15 if [ "$TEST_FIN" == "" ]; then
19 declare BRANCH_
${TEST_POS}="$TEST_OP"
20 declare BRANCH_EXTRA_
${TEST_POS}="$TEST_EXTRA"
22 TEST_NAME
=${TEST_VALIDITY}_
${TEST_NAME}
23 TEST_FILE
=${TEST_NAME}_generated.il
26 $SED -e "s/VALIDITY/${TEST_VALIDITY}/g" -e "s/OPCODE/${TEST_OP}/g" -e "s/FINALLY/${TEST_FIN}/g" > $TEST_FILE <<//EOF
28 // VALIDITY CIL
which breaks the ECMA-335 rules.
29 // this CIL should fail verification by a conforming CLI verifier.
31 .assembly
'${TEST_NAME}_generated'
33 .
hash algorithm
0x00008004
38 extends
[mscorlib
]System.Object
42 .class sealed MyValueType
43 extends
[mscorlib
]System.ValueType
45 .field private int32 v
48 .class public Template\
`1<T>
49 extends [mscorlib]System.Object
53 .class sealed public ValueTypeTemplate\`1<T
>
54 extends
[mscorlib
]System.ValueType
56 .field private int32 v
59 .method public static int32 Main
() cil managed
63 .locals init
( int32 V0
, native int V1
)
101 } catch
[mscorlib
]System.Exception
{