**** Merged from MCS ****
[mono-project.git] / mcs / ilasm / tests / test-32.il
blobb225f9de11b2d02e17b03bec78150cc7652157fa
1 //
2 // Mono.ILASM.Tests.Test32
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
10 .assembly extern mscorlib { }
12 .namespace Mono.ILASM.Tests {
14         .class public Test32 {
17                 //
18                 // Test using explicit offsets for branch labels
19                 //
20                 .method public static int32 main ()
21                 {
22                         .entrypoint
24                         ldc.i4.1 
25                         brtrue 15
26                         
27                         ldstr "FAIL"
28                         call void [mscorlib]System.Console::WriteLine (string)
29                         ldc.i4.1
30                         ret
31                         
32                         ldstr "PASS"
33                         call void [mscorlib]System.Console::WriteLine (string)
34                         ldc.i4.0
36                         ret
37                 }
39         }