Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing il files to Lock pretty tests
- Loading branch information
1 parent
7544eac
commit 73f2988
Showing
2 changed files
with
278 additions
and
0 deletions.
There are no files selected for viewing
139 changes: 139 additions & 0 deletions
139
ICSharpCode.Decompiler.Tests/TestCases/Pretty/Lock.mcs.il
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
|
||
// Microsoft (R) .NET Framework IL Disassembler. Version 4.6.1055.0 | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
|
||
|
||
|
||
// Metadata version: v2.0.50727 | ||
.assembly extern mscorlib | ||
{ | ||
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. | ||
.ver 2:0:0:0 | ||
} | ||
.assembly tmpE10E | ||
{ | ||
.custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx | ||
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. | ||
.permissionset reqmin | ||
bytearray (3C 00 50 00 65 00 72 00 6D 00 69 00 73 00 73 00 // <.P.e.r.m.i.s.s. | ||
69 00 6F 00 6E 00 53 00 65 00 74 00 20 00 63 00 // i.o.n.S.e.t. .c. | ||
6C 00 61 00 73 00 73 00 3D 00 22 00 53 00 79 00 // l.a.s.s.=.".S.y. | ||
73 00 74 00 65 00 6D 00 2E 00 53 00 65 00 63 00 // s.t.e.m...S.e.c. | ||
75 00 72 00 69 00 74 00 79 00 2E 00 50 00 65 00 // u.r.i.t.y...P.e. | ||
72 00 6D 00 69 00 73 00 73 00 69 00 6F 00 6E 00 // r.m.i.s.s.i.o.n. | ||
53 00 65 00 74 00 22 00 0D 00 0A 00 76 00 65 00 // S.e.t.".....v.e. | ||
72 00 73 00 69 00 6F 00 6E 00 3D 00 22 00 31 00 // r.s.i.o.n.=.".1. | ||
22 00 3E 00 0D 00 0A 00 3C 00 49 00 50 00 65 00 // ".>.....<.I.P.e. | ||
72 00 6D 00 69 00 73 00 73 00 69 00 6F 00 6E 00 // r.m.i.s.s.i.o.n. | ||
20 00 63 00 6C 00 61 00 73 00 73 00 3D 00 22 00 // .c.l.a.s.s.=.". | ||
53 00 79 00 73 00 74 00 65 00 6D 00 2E 00 53 00 // S.y.s.t.e.m...S. | ||
65 00 63 00 75 00 72 00 69 00 74 00 79 00 2E 00 // e.c.u.r.i.t.y... | ||
50 00 65 00 72 00 6D 00 69 00 73 00 73 00 69 00 // P.e.r.m.i.s.s.i. | ||
6F 00 6E 00 73 00 2E 00 53 00 65 00 63 00 75 00 // o.n.s...S.e.c.u. | ||
72 00 69 00 74 00 79 00 50 00 65 00 72 00 6D 00 // r.i.t.y.P.e.r.m. | ||
69 00 73 00 73 00 69 00 6F 00 6E 00 2C 00 20 00 // i.s.s.i.o.n.,. . | ||
6D 00 73 00 63 00 6F 00 72 00 6C 00 69 00 62 00 // m.s.c.o.r.l.i.b. | ||
2C 00 20 00 56 00 65 00 72 00 73 00 69 00 6F 00 // ,. .V.e.r.s.i.o. | ||
6E 00 3D 00 32 00 2E 00 30 00 2E 00 30 00 2E 00 // n.=.2...0...0... | ||
30 00 2C 00 20 00 43 00 75 00 6C 00 74 00 75 00 // 0.,. .C.u.l.t.u. | ||
72 00 65 00 3D 00 6E 00 65 00 75 00 74 00 72 00 // r.e.=.n.e.u.t.r. | ||
61 00 6C 00 2C 00 20 00 50 00 75 00 62 00 6C 00 // a.l.,. .P.u.b.l. | ||
69 00 63 00 4B 00 65 00 79 00 54 00 6F 00 6B 00 // i.c.K.e.y.T.o.k. | ||
65 00 6E 00 3D 00 62 00 37 00 37 00 61 00 35 00 // e.n.=.b.7.7.a.5. | ||
63 00 35 00 36 00 31 00 39 00 33 00 34 00 65 00 // c.5.6.1.9.3.4.e. | ||
30 00 38 00 39 00 22 00 0D 00 0A 00 76 00 65 00 // 0.8.9.".....v.e. | ||
72 00 73 00 69 00 6F 00 6E 00 3D 00 22 00 31 00 // r.s.i.o.n.=.".1. | ||
22 00 0D 00 0A 00 46 00 6C 00 61 00 67 00 73 00 // ".....F.l.a.g.s. | ||
3D 00 22 00 53 00 6B 00 69 00 70 00 56 00 65 00 // =.".S.k.i.p.V.e. | ||
72 00 69 00 66 00 69 00 63 00 61 00 74 00 69 00 // r.i.f.i.c.a.t.i. | ||
6F 00 6E 00 22 00 2F 00 3E 00 0D 00 0A 00 3C 00 // o.n."./.>.....<. | ||
2F 00 50 00 65 00 72 00 6D 00 69 00 73 00 73 00 // /.P.e.r.m.i.s.s. | ||
69 00 6F 00 6E 00 53 00 65 00 74 00 3E 00 0D 00 // i.o.n.S.e.t.>... | ||
0A 00 ) | ||
.hash algorithm 0x00008004 | ||
.ver 0:0:0:0 | ||
} | ||
.module tmpE10E.tmp | ||
// MVID: {0300BC49-B2EF-4506-8B74-DF85DD4F91E4} | ||
.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) | ||
.imagebase 0x00400000 | ||
.file alignment 0x00000200 | ||
.stackreserve 0x00100000 | ||
.subsystem 0x0003 // WINDOWS_CUI | ||
.corflags 0x00000001 // ILONLY | ||
// Image base: 0x04DB0000 | ||
|
||
|
||
// =============== CLASS MEMBERS DECLARATION =================== | ||
|
||
.class public auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.Lock | ||
extends [mscorlib]System.Object | ||
{ | ||
.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 Lock::.ctor | ||
|
||
.method public hidebysig instance void | ||
LockThis() cil managed | ||
{ | ||
// Code size 26 (0x1a) | ||
.maxstack 4 | ||
.locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Lock V_0) | ||
IL_0000: ldarg.0 | ||
IL_0001: stloc.0 | ||
IL_0002: ldloc.0 | ||
IL_0003: call void [mscorlib]System.Threading.Monitor::Enter(object) | ||
.try | ||
{ | ||
IL_0008: call void [mscorlib]System.Console::WriteLine() | ||
IL_000d: leave IL_0019 | ||
|
||
} // end .try | ||
finally | ||
{ | ||
IL_0012: ldloc.0 | ||
IL_0013: call void [mscorlib]System.Threading.Monitor::Exit(object) | ||
IL_0018: endfinally | ||
} // end handler | ||
IL_0019: ret | ||
} // end of method Lock::LockThis | ||
|
||
.method public hidebysig instance void | ||
LockOnType() cil managed | ||
{ | ||
// Code size 35 (0x23) | ||
.maxstack 5 | ||
.locals init (class [mscorlib]System.Type V_0) | ||
IL_0000: ldtoken ICSharpCode.Decompiler.Tests.TestCases.Pretty.Lock | ||
IL_0005: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) | ||
IL_000a: stloc.0 | ||
IL_000b: ldloc.0 | ||
IL_000c: call void [mscorlib]System.Threading.Monitor::Enter(object) | ||
.try | ||
{ | ||
IL_0011: call void [mscorlib]System.Console::WriteLine() | ||
IL_0016: leave IL_0022 | ||
|
||
} // end .try | ||
finally | ||
{ | ||
IL_001b: ldloc.0 | ||
IL_001c: call void [mscorlib]System.Threading.Monitor::Exit(object) | ||
IL_0021: endfinally | ||
} // end handler | ||
IL_0022: ret | ||
} // end of method Lock::LockOnType | ||
|
||
} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Lock | ||
|
||
|
||
// ============================================================= | ||
|
||
// *********** DISASSEMBLY COMPLETE *********************** | ||
// WARNING: Created Win32 resource file ../../../TestCases/Pretty\Lock.mcs.res |
139 changes: 139 additions & 0 deletions
139
ICSharpCode.Decompiler.Tests/TestCases/Pretty/Lock.opt.mcs.il
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
|
||
// Microsoft (R) .NET Framework IL Disassembler. Version 4.6.1055.0 | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
|
||
|
||
|
||
// Metadata version: v2.0.50727 | ||
.assembly extern mscorlib | ||
{ | ||
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. | ||
.ver 2:0:0:0 | ||
} | ||
.assembly tmpE3DF | ||
{ | ||
.custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx | ||
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. | ||
.permissionset reqmin | ||
bytearray (3C 00 50 00 65 00 72 00 6D 00 69 00 73 00 73 00 // <.P.e.r.m.i.s.s. | ||
69 00 6F 00 6E 00 53 00 65 00 74 00 20 00 63 00 // i.o.n.S.e.t. .c. | ||
6C 00 61 00 73 00 73 00 3D 00 22 00 53 00 79 00 // l.a.s.s.=.".S.y. | ||
73 00 74 00 65 00 6D 00 2E 00 53 00 65 00 63 00 // s.t.e.m...S.e.c. | ||
75 00 72 00 69 00 74 00 79 00 2E 00 50 00 65 00 // u.r.i.t.y...P.e. | ||
72 00 6D 00 69 00 73 00 73 00 69 00 6F 00 6E 00 // r.m.i.s.s.i.o.n. | ||
53 00 65 00 74 00 22 00 0D 00 0A 00 76 00 65 00 // S.e.t.".....v.e. | ||
72 00 73 00 69 00 6F 00 6E 00 3D 00 22 00 31 00 // r.s.i.o.n.=.".1. | ||
22 00 3E 00 0D 00 0A 00 3C 00 49 00 50 00 65 00 // ".>.....<.I.P.e. | ||
72 00 6D 00 69 00 73 00 73 00 69 00 6F 00 6E 00 // r.m.i.s.s.i.o.n. | ||
20 00 63 00 6C 00 61 00 73 00 73 00 3D 00 22 00 // .c.l.a.s.s.=.". | ||
53 00 79 00 73 00 74 00 65 00 6D 00 2E 00 53 00 // S.y.s.t.e.m...S. | ||
65 00 63 00 75 00 72 00 69 00 74 00 79 00 2E 00 // e.c.u.r.i.t.y... | ||
50 00 65 00 72 00 6D 00 69 00 73 00 73 00 69 00 // P.e.r.m.i.s.s.i. | ||
6F 00 6E 00 73 00 2E 00 53 00 65 00 63 00 75 00 // o.n.s...S.e.c.u. | ||
72 00 69 00 74 00 79 00 50 00 65 00 72 00 6D 00 // r.i.t.y.P.e.r.m. | ||
69 00 73 00 73 00 69 00 6F 00 6E 00 2C 00 20 00 // i.s.s.i.o.n.,. . | ||
6D 00 73 00 63 00 6F 00 72 00 6C 00 69 00 62 00 // m.s.c.o.r.l.i.b. | ||
2C 00 20 00 56 00 65 00 72 00 73 00 69 00 6F 00 // ,. .V.e.r.s.i.o. | ||
6E 00 3D 00 32 00 2E 00 30 00 2E 00 30 00 2E 00 // n.=.2...0...0... | ||
30 00 2C 00 20 00 43 00 75 00 6C 00 74 00 75 00 // 0.,. .C.u.l.t.u. | ||
72 00 65 00 3D 00 6E 00 65 00 75 00 74 00 72 00 // r.e.=.n.e.u.t.r. | ||
61 00 6C 00 2C 00 20 00 50 00 75 00 62 00 6C 00 // a.l.,. .P.u.b.l. | ||
69 00 63 00 4B 00 65 00 79 00 54 00 6F 00 6B 00 // i.c.K.e.y.T.o.k. | ||
65 00 6E 00 3D 00 62 00 37 00 37 00 61 00 35 00 // e.n.=.b.7.7.a.5. | ||
63 00 35 00 36 00 31 00 39 00 33 00 34 00 65 00 // c.5.6.1.9.3.4.e. | ||
30 00 38 00 39 00 22 00 0D 00 0A 00 76 00 65 00 // 0.8.9.".....v.e. | ||
72 00 73 00 69 00 6F 00 6E 00 3D 00 22 00 31 00 // r.s.i.o.n.=.".1. | ||
22 00 0D 00 0A 00 46 00 6C 00 61 00 67 00 73 00 // ".....F.l.a.g.s. | ||
3D 00 22 00 53 00 6B 00 69 00 70 00 56 00 65 00 // =.".S.k.i.p.V.e. | ||
72 00 69 00 66 00 69 00 63 00 61 00 74 00 69 00 // r.i.f.i.c.a.t.i. | ||
6F 00 6E 00 22 00 2F 00 3E 00 0D 00 0A 00 3C 00 // o.n."./.>.....<. | ||
2F 00 50 00 65 00 72 00 6D 00 69 00 73 00 73 00 // /.P.e.r.m.i.s.s. | ||
69 00 6F 00 6E 00 53 00 65 00 74 00 3E 00 0D 00 // i.o.n.S.e.t.>... | ||
0A 00 ) | ||
.hash algorithm 0x00008004 | ||
.ver 0:0:0:0 | ||
} | ||
.module tmpE3DF.tmp | ||
// MVID: {2EBA312B-EF3B-4364-91A6-0062C2105169} | ||
.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) | ||
.imagebase 0x00400000 | ||
.file alignment 0x00000200 | ||
.stackreserve 0x00100000 | ||
.subsystem 0x0003 // WINDOWS_CUI | ||
.corflags 0x00000001 // ILONLY | ||
// Image base: 0x03960000 | ||
|
||
|
||
// =============== CLASS MEMBERS DECLARATION =================== | ||
|
||
.class public auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.Lock | ||
extends [mscorlib]System.Object | ||
{ | ||
.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 Lock::.ctor | ||
|
||
.method public hidebysig instance void | ||
LockThis() cil managed | ||
{ | ||
// Code size 26 (0x1a) | ||
.maxstack 4 | ||
.locals init (class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Lock V_0) | ||
IL_0000: ldarg.0 | ||
IL_0001: stloc.0 | ||
IL_0002: ldloc.0 | ||
IL_0003: call void [mscorlib]System.Threading.Monitor::Enter(object) | ||
.try | ||
{ | ||
IL_0008: call void [mscorlib]System.Console::WriteLine() | ||
IL_000d: leave IL_0019 | ||
|
||
} // end .try | ||
finally | ||
{ | ||
IL_0012: ldloc.0 | ||
IL_0013: call void [mscorlib]System.Threading.Monitor::Exit(object) | ||
IL_0018: endfinally | ||
} // end handler | ||
IL_0019: ret | ||
} // end of method Lock::LockThis | ||
|
||
.method public hidebysig instance void | ||
LockOnType() cil managed | ||
{ | ||
// Code size 35 (0x23) | ||
.maxstack 5 | ||
.locals init (class [mscorlib]System.Type V_0) | ||
IL_0000: ldtoken ICSharpCode.Decompiler.Tests.TestCases.Pretty.Lock | ||
IL_0005: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) | ||
IL_000a: stloc.0 | ||
IL_000b: ldloc.0 | ||
IL_000c: call void [mscorlib]System.Threading.Monitor::Enter(object) | ||
.try | ||
{ | ||
IL_0011: call void [mscorlib]System.Console::WriteLine() | ||
IL_0016: leave IL_0022 | ||
|
||
} // end .try | ||
finally | ||
{ | ||
IL_001b: ldloc.0 | ||
IL_001c: call void [mscorlib]System.Threading.Monitor::Exit(object) | ||
IL_0021: endfinally | ||
} // end handler | ||
IL_0022: ret | ||
} // end of method Lock::LockOnType | ||
|
||
} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Lock | ||
|
||
|
||
// ============================================================= | ||
|
||
// *********** DISASSEMBLY COMPLETE *********************** | ||
// WARNING: Created Win32 resource file ../../../TestCases/Pretty\Lock.opt.mcs.res |