diff options
Diffstat (limited to 'mcs/ilasm/tests/test-3.il')
-rw-r--r-- | mcs/ilasm/tests/test-3.il | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-3.il b/mcs/ilasm/tests/test-3.il new file mode 100644 index 00000000000..8724c3fe138 --- /dev/null +++ b/mcs/ilasm/tests/test-3.il @@ -0,0 +1,35 @@ +// +// Mono.ILASM.Tests +// +// Author(s): +// Jackson Harper (Jackson@LatitudeGeo.com) +// +// (C) 2003 Jackson Harper, All rights reserved +// +.assembly extern corlib { } + +// +// Define a method and execute that method +// + +.namespace Mono.ILASM.Tests { + + .class public auto ansi Test_3 extends [corlib]System.Object { + + .method public static void check( ) cil managed { + .entrypoint + .maxstack 1 + + call void Mono.ILASM.Tests.Test_3::print_hello() + + ret + } + + .method private static void print_hello() cil managed { + ldstr "PASS" + call void [corlib]System.Console::WriteLine(string) + } + + } +} + |