diff options
Diffstat (limited to 'mcs/ilasm/tests/test-32.il')
-rw-r--r-- | mcs/ilasm/tests/test-32.il | 42 |
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 + } + + } + +} + |