blob: 157d5f5f6d963bd7a67185402499358a5b5192f0 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
.assembly extern legacy library mscorlib {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly legacy library ldfldstatic1 {}
.class private auto ansi beforefieldinit ldfldstatic1
extends [mscorlib]System.Object
{
.field private static int32 fld
.method private hidebysig static class ldfldstatic1
f() cil managed
{
// Code size 10 (0xa)
.maxstack 1
.locals init (class ldfldstatic1 V_0)
IL_0000: newobj instance void ldfldstatic1::.ctor()
IL_0005: stloc.0
IL_0006: br.s IL_0008
IL_0008: ldloc.0
IL_0009: ret
} // end of method ldfldstatic1::f
.method public hidebysig static int32 Main() cil managed
{
.entrypoint
// Code size 23 (0x17)
.maxstack 1
.locals init (class ldfldstatic1 V_0,
int32 V_1)
IL_0000: call class ldfldstatic1 ldfldstatic1::f()
IL_0005: //stloc.0
IL_0006: ldfld int32 ldfldstatic1::fld
IL_000b: call void [System.Console]System.Console::WriteLine(int32)
IL_0010: ldstr "PASSED"
call void [System.Console]System.Console::WriteLine(string)
ldc.i4.s 100
IL_0016: ret
} // end of method ldfldstatic1::Main
.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ret
} // end of method ldfldstatic1::.ctor
}
|