blob: eeb9eb6d7cd3bff60f3db793bad4817342e5f0c1 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// endfinally after finally
// expect throw System.InvalidProgramException
.assembly extern mscorlib {}
.assembly test {}
.module test_04a.exe
.class private auto ansi beforefieldinit test extends [mscorlib]System.Object
{
.method public static int32 Main() cil managed
{
.entrypoint
.try
{
call void test::f()
leave FAIL
}
catch [mscorlib]System.NullReferenceException
{
leave PASS
}
PASS:
ldc.i4 100
ret
FAIL:
ldc.i4 1
ret
}
.method public static void f()
{
.locals (int32* V_0, int32 V_1)
ldc.i4 0
conv.u
ldind.i4
pop
ret
}
}
|