4 if [ `which gsed 2> /dev/null` ] ; then
14 if [ "$TEST_FIN" == "" ]; then
18 declare BRANCH_${TEST_POS}="$TEST_OP"
20 TEST_NAME=${TEST_VALIDITY}_${TEST_NAME}
21 TEST_FILE=${TEST_NAME}_generated.il
24 $SED -e "s/VALIDITY/${TEST_VALIDITY}/g" -e "s/OPCODE/${TEST_OP}/g" -e "s/FINALLY/${TEST_FIN}/g" > $TEST_FILE <<//EOF
26 // VALIDITY CIL which breaks the ECMA-335 rules.
27 // this CIL should fail verification by a conforming CLI verifier.
29 .assembly '${TEST_NAME}_generated'
31 .hash algorithm 0x00008004
36 extends [mscorlib]System.Object
40 .class sealed MyValueType
41 extends [mscorlib]System.ValueType
43 .field private int32 v
46 .class public Template\`1<T>
47 extends [mscorlib]System.Object
51 .class sealed public ValueTypeTemplate\`1<T>
52 extends [mscorlib]System.ValueType
54 .field private int32 v
57 .method public static int32 Main() cil managed
61 .locals init ( int32 BLA)
85 } catch [mscorlib]System.Exception {