In .:
[mono.git] / mcs / ilasm / tests / test-9.il
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 mscorlib { }
10
11 //
12 // Call a constructor for a type defined in this assembly
13 //
14
15 .namespace Mono.ILASM.Tests {
16
17         .class public auto ansi A extends [mscorlib]System.Object 
18         {
19                 
20                 .method public instance void .ctor () cil managed
21                 {
22                         ldstr "In Constructor"
23                         call void [mscorlib]System.Console::WriteLine (string)
24                         ret             
25                 }
26                 
27         }
28
29         .class public auto ansi Test_9 extends [mscorlib]System.Object 
30         {
31         
32                 .method public static void main (string) cil managed {
33                         .entrypoint
34                         newobj void Mono.ILASM.Tests.A::.ctor ()
35                         pop
36                         ret
37                 }
38         }
39         
40 }
41