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-32.il')
-rw-r--r--mcs/ilasm/tests/test-32.il42
1 files changed, 42 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-32.il b/mcs/ilasm/tests/test-32.il
new file mode 100644
index 00000000000..b225f9de11b
--- /dev/null
+++ b/mcs/ilasm/tests/test-32.il
@@ -0,0 +1,42 @@
+//
+// Mono.ILASM.Tests.Test32
+//
+// Author(s):
+// Jackson Harper (Jackson@LatitudeGeo.com)
+//
+// (C) 2003 Jackson Harper, All rights reserved
+//
+
+.assembly extern mscorlib { }
+
+.namespace Mono.ILASM.Tests {
+
+ .class public Test32 {
+
+
+ //
+ // Test using explicit offsets for branch labels
+ //
+ .method public static int32 main ()
+ {
+ .entrypoint
+
+ ldc.i4.1
+ brtrue 15
+
+ ldstr "FAIL"
+ call void [mscorlib]System.Console::WriteLine (string)
+ ldc.i4.1
+ ret
+
+ ldstr "PASS"
+ call void [mscorlib]System.Console::WriteLine (string)
+ ldc.i4.0
+
+ ret
+ }
+
+ }
+
+}
+