Merge pull request #3522 from henricm/fix-csharp-compiler-path-windows
[mono.git] / mcs / ilasm / tests / test-32.il
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 //
9
10 .assembly extern mscorlib { }
11
12 .namespace Mono.ILASM.Tests {
13
14         .class public Test32 {
15
16
17                 //
18                 // Test using explicit offsets for branch labels
19                 //
20                 .method public static int32 main ()
21                 {
22                         .entrypoint
23
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
35
36                         ret
37                 }
38
39         }
40
41 }
42