diff --git a/ICSharpCode.Decompiler/Tests/TestCases/Pretty/HelloWorld.il b/ICSharpCode.Decompiler/Tests/TestCases/Pretty/HelloWorld.il new file mode 100644 index 000000000..538f0b7fd --- /dev/null +++ b/ICSharpCode.Decompiler/Tests/TestCases/Pretty/HelloWorld.il @@ -0,0 +1,58 @@ +// Microsoft (R) .NET Framework IL Disassembler. Version 4.0.30319.17929 +// Copyright (c) Microsoft Corporation. All rights reserved. + +// Metadata version: v4.0.30319 +.assembly extern mscorlib +{ + .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. + .ver 4:0:0:0 +} +.assembly ndx1gr1f +{ + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) + .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 + = {[mscorlib]System.Security.Permissions.SecurityPermissionAttribute = {property bool 'SkipVerification' = bool(true)}} + .hash algorithm 0x00008004 + .ver 0:0:0:0 +} +.module ndx1gr1f.exe +// MVID: {8005ACF2-3B7B-47F2-8D51-C16AB15E3999} +.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: 0x01140000 + + +// =============== CLASS MEMBERS DECLARATION =================== + +.class public auto ansi beforefieldinit Pretty.HelloWorld.HelloWorld + extends [mscorlib]System.Object +{ + .method public hidebysig static void Main() cil managed + { + .entrypoint + // Code size 13 (0xd) + .maxstack 8 + IL_0000: nop + IL_0001: ldstr "Hello World!" + IL_0006: call void [mscorlib]System.Console::WriteLine(string) + IL_000b: nop + IL_000c: ret + } // end of method HelloWorld::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 HelloWorld::.ctor + +} // end of class Pretty.HelloWorld.HelloWorld \ No newline at end of file