diff options
Diffstat (limited to 'mcs/ilasm/tests/test-2.il')
-rw-r--r-- | mcs/ilasm/tests/test-2.il | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-2.il b/mcs/ilasm/tests/test-2.il new file mode 100644 index 00000000000..9e3db00a5ce --- /dev/null +++ b/mcs/ilasm/tests/test-2.il @@ -0,0 +1,33 @@ +// +// Mono.ILASM.Tests +// +// Author(s): +// Jackson Harper (Jackson@LatitudeGeo.com) +// +// (C) 2003 Jackson Harper, All rights reserved +// +.assembly extern mscorlib { } + +// +// Declare a local object instantiate it and print it to stdout +// + +.namespace Mono.ILASM.Tests { + + .class public auto ansi Test_2 extends [mscorlib]System.Object { + + .method public static void main () cil managed { + .entrypoint + .maxstack 1 + .locals init (object obj) + + newobj instance void [mscorlib]System.Object::.ctor() + stloc.0 + ldloc.0 + call void [mscorlib]System.Console::WriteLine(object) + + ret + } + } +} + |