Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/ilasm/tests/test-4.il')
-rw-r--r--mcs/ilasm/tests/test-4.il36
1 files changed, 36 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-4.il b/mcs/ilasm/tests/test-4.il
new file mode 100644
index 00000000000..b79a85beed3
--- /dev/null
+++ b/mcs/ilasm/tests/test-4.il
@@ -0,0 +1,36 @@
+//
+// Mono.ILASM.Tests
+//
+// Author(s):
+// Jackson Harper (Jackson@LatitudeGeo.com)
+//
+// (C) 2003 Jackson Harper, All rights reserved
+//
+.assembly extern corlib { }
+
+//
+// Pass a param to a method
+//
+
+.namespace Mono.ILASM.Tests {
+
+ .class public auto ansi Test_4 extends [corlib]System.Object {
+
+ .method public static void check( ) cil managed {
+ .entrypoint
+ .maxstack 1
+
+ ldstr "PASS"
+ call void Mono.ILASM.Tests.Test_4::print_string(string)
+
+ ret
+ }
+
+ .method private static void print_string(string) cil managed {
+ ldarg.0
+ call void [corlib]System.Console::WriteLine(string)
+ }
+
+ }
+}
+