提交 777dab7e 编写于 作者: R Rodrigo Kumpera

Fix some tests that got broken due to the verifier getting stricter

上级 5fdf8da7
......@@ -3163,13 +3163,20 @@ done
#token
I=1
for TOKEN in int32 int64 float32 float64 "valuetype MyStruct" "int32*" "typedref" "int32[]" "string" "method int32 *(int32)"
for TOKEN in int32 int64 float32 float64 "valuetype MyStruct" "int32[]" "string"
do
./make_cast_test.sh cast_token_${I} valid "object" "ldloc.0" "castclass $TOKEN"
./make_cast_test.sh isinst_token_${I} valid "object" "ldloc.0" "isinst $TOKEN"
I=`expr $I + 1`
done
for TOKEN in "int32*" "method int32 *(int32)" "typedref"
do
./make_cast_test.sh cast_token_${I} unverifiable "object" "ldloc.0" "castclass $TOKEN"
./make_cast_test.sh isinst_token_${I} unverifiable "object" "ldloc.0" "isinst $TOKEN"
I=`expr $I + 1`
done
for TOKEN in "int32\&"
do
./make_cast_test.sh cast_token_${I} invalid "object" "ldloc.0" "castclass $TOKEN"
......
......@@ -11,7 +11,7 @@
.class private sequential ansi sealed beforefieldinit MyVT
extends [mscorlib]System.Object
{
.field public [mscorlib]System.Decimal Value
.field public valuetype [mscorlib]System.Decimal Value
}
......
......@@ -11,7 +11,7 @@
.class private sequential ansi sealed beforefieldinit MyVT
extends [mscorlib]System.Object
{
.field public [mscorlib]System.Decimal Value
.field public valuetype [mscorlib]System.Decimal Value
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册