Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-9.il « tests « ilasm « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db967816569bdcc11e4739ec3e96136463a8541b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// Mono.ILASM.Tests
//
// Author(s):
//  Jackson Harper (Jackson@LatitudeGeo.com)
//
// (C) 2003 Jackson Harper, All rights reserved
//
.assembly extern mscorlib { }

//
// Call a constructor for a type defined in this assembly
//

.namespace Mono.ILASM.Tests {

	.class public auto ansi A extends [mscorlib]System.Object 
	{
		
		.method public instance void .ctor () cil managed
		{
			ldstr "In Constructor"
			call void [mscorlib]System.Console::WriteLine (string)
			ret		
		}
		
	}

	.class public auto ansi Test_9 extends [mscorlib]System.Object 
	{
	
		.method public static void main (string) cil managed {
			.entrypoint
			newobj void Mono.ILASM.Tests.A::.ctor ()
			pop
			ret
		}
	}
	
}