diff options
Diffstat (limited to 'mcs/ilasm/tests/test-9.il')
-rw-r--r-- | mcs/ilasm/tests/test-9.il | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-9.il b/mcs/ilasm/tests/test-9.il new file mode 100644 index 00000000000..db967816569 --- /dev/null +++ b/mcs/ilasm/tests/test-9.il @@ -0,0 +1,41 @@ +// +// Mono.ILASM.Tests +// +// Author(s): +// Jackson Harper (Jackson@LatitudeGeo.com) +// +// (C) 2003 Jackson Harper, All rights reserved +// +.assembly extern mscorlib { } + +// +// Call a constructor for a type defined in this assembly +// + +.namespace Mono.ILASM.Tests { + + .class public auto ansi A extends [mscorlib]System.Object + { + + .method public instance void .ctor () cil managed + { + ldstr "In Constructor" + call void [mscorlib]System.Console::WriteLine (string) + ret + } + + } + + .class public auto ansi Test_9 extends [mscorlib]System.Object + { + + .method public static void main (string) cil managed { + .entrypoint + newobj void Mono.ILASM.Tests.A::.ctor () + pop + ret + } + } + +} + |