2010-06-04 Jb Evain <jbevain@novell.com>
[mcs.git] / ilasm / tests / test-3.il
blob8724c3fe1384d895cb4d850a8b6d3ff01d3c399c
1 //
2 // Mono.ILASM.Tests
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
9 .assembly extern corlib { }
12 // Define a method and execute that method
15 .namespace Mono.ILASM.Tests {
17         .class public auto ansi Test_3 extends [corlib]System.Object {
18         
19                 .method public static void check( ) cil managed {
20                         .entrypoint
21                         .maxstack 1     
22                         
23                         call void Mono.ILASM.Tests.Test_3::print_hello()
25                         ret
26                 }
28                 .method private static void print_hello() cil managed {
29                         ldstr "PASS"
30                         call void [corlib]System.Console::WriteLine(string)
31                 }
32         
33         }