Test case for bug #77788.
[mono.git] / mono / tests / verifier / make_stack_0_pop_test.sh
index a4526d1d5a22a5a13605ea5da1f48e47147f53bd..717a26bbcfd50e40cf953165a7469d2a8c03e3de 100755 (executable)
@@ -3,18 +3,24 @@
 TEST_OP=$1
 
 TEST_OP_SHORT=`echo $TEST_OP | cut -d " " -f 1`
-TEST_FILE=`echo invalid_stack_0_${TEST_OP_SHORT} | sed -e "s/ /_/g" -e "s/\./_/g" -e "s/&/mp/g"`_generated.cil
+TEST_FILE=`echo invalid_stack_0_${TEST_OP_SHORT} | sed -e "s/ /_/g" -e "s/\./_/g" -e "s/&/mp/g"`_generated.il
 echo $TEST_FILE
 sed -e "s/OPCODE/${TEST_OP}/g" > $TEST_FILE <<//EOF
 // invalid CIL which breaks the ECMA-335 rules. 
 // This CIL should fail verification by a conforming CLI verifier.
 
+.assembly '${TEST_NAME}_generated'
+{
+  .hash algorithm 0x00008004
+  .ver  0:0:0:0
+}
+
 .class Class extends [mscorlib]System.Object
 {
     .field public int32 fld
 }
 
-.method public static int32 Main(int32 arg) cil managed
+.method public static int32 Main() cil managed
 {
        .entrypoint
        .maxstack 1