summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Directed/coverage/importer/Desktop/badldsfld.il
blob: 7cd31d3debd7e13feea97bf06900417f70507708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

.assembly extern mscorlib {}
.assembly badldslfd {.custom instance void [mscorlib]System.Security.SecurityRulesAttribute::.ctor(valuetype [mscorlib]System.Security.SecurityRuleSet) = ( 01 00 01 00 00 ) }
.class Test extends [mscorlib]System.Object
{
.field int32 i
.method static int32 f()
{
ldsfld int32 Test::i
ret
}
.method public static int32 Main()
{
.entrypoint
.try
{
call int32 Test::f()
leave.s FAIL
}
catch [mscorlib]System.Security.VerificationException
{
leave.s PASS
}
PASS:
ldc.i4 100
ret
FAIL:
ldc.i4 1
ret
}
}