2010-06-21 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / ilasm / tests / test-2.il
blob9e3db00a5ce69f4478d6ef5fda2ba6e0c9c75c54
1 //
2 // Mono.ILASM.Tests
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
9 .assembly extern mscorlib { }
12 // Declare a local object instantiate it and print it to stdout
15 .namespace Mono.ILASM.Tests {
17         .class public auto ansi Test_2 extends [mscorlib]System.Object {
18         
19                 .method public static void main () cil managed {
20                         .entrypoint
21                         .maxstack 1     
22                         .locals init (object obj)
24                         newobj instance void [mscorlib]System.Object::.ctor()
25                         stloc.0 
26                         ldloc.0 
27                         call void [mscorlib]System.Console::WriteLine(object)
28                 
29                         ret
30                 }               
31         }