[WinForms] Fix #18506 ActiveTracker, do not propagate message to control when it...
[mono-project.git] / mono / tests / verifier / make_ldobj_test.sh
blob4a2f84a1ed6bd0796a57d3071e6bc7127ebf404d
1 #! /bin/sh
3 SED="sed"
4 if [ `which gsed 2> /dev/null` ] ; then
5 SED="gsed"
6 fi
8 TEST_NAME=$1
9 TEST_VALIDITY=$2
10 TEST_TYPE1=$3
11 TEST_TYPE2=$4
12 ZZ=`echo $TEST_TYPE1 | grep "\&"`
13 T1_REF=$?
15 LOCAL_INIT="";
16 if [ $T1_REF -eq 0 ]; then
17 T1_NO_REF=`echo $TEST_TYPE1 | cut -d '\' -f 1`
18 INIT_LOCS=", $T1_NO_REF V_0"
19 INIT_IL="ldloca.s 1\n\tstloc.0"
22 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
23 echo $TEST_FILE
24 $SED -e "s/TYPE1/${TEST_TYPE1}/g" -e "s/VALIDITY/${TEST_VALIDITY}/g" -e "s/TYPE2/${TEST_TYPE2}/g" -e "s/INIT_LOCS/${INIT_LOCS}/g" -e "s/INIT_IL/${INIT_IL}/g"> $TEST_FILE <<//EOF
26 .assembly extern mscorlib
28 .ver 2:0:0:0
29 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
32 .assembly 'ldobj_test'
34 .hash algorithm 0x00008004
35 .ver 0:0:0:0
38 .module ldobj.exe
41 .class Class extends [mscorlib]System.Object
43 .field public int32 valid
46 .class public Template\`1<T>
47 extends [mscorlib]System.Object
51 .class sealed public StructTemplate\`1<T>
52 extends [mscorlib]System.ValueType
54 .field public !0 t
57 .class sealed public StructTemplate2\`1<T>
58 extends [mscorlib]System.ValueType
60 .field public !0 t
64 .class public auto ansi sealed MyStruct
65 extends [mscorlib]System.ValueType
67 .field public int32 foo
71 .class public auto ansi sealed MyStruct2
72 extends [mscorlib]System.ValueType
74 .field public int32 foo
77 .method public static int32 Main ()
79 .entrypoint
80 .maxstack 8
81 .locals init (TYPE1 V_0 INIT_LOCS)
82 INIT_IL
83 ldloc.0
84 ldobj TYPE2 // VALIDITY
85 pop
86 ldc.i4.0
87 ret
90 //EOF