summaryrefslogtreecommitdiff
path: root/tests/src/Loader/classloader/rmv/il/RMV-2-13-41a-two.il
blob: 04bc52a483136ff15f7c296ac2edbbce8733d4f8 (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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

.assembly extern System.Console { }
/* RDawson - 11/2/200

  Check that a standard .cctor is valid.
*/

.assembly Bob{}
.assembly extern mscorlib {}

.class Foo{
	.method public specialname static void .cctor(){
		ret
	}
	.method public specialname void .ctor(){
		ldarg.0
		call	instance void [mscorlib]System.Object::.ctor()
		ret
	}
}

.method public static int32 main(){
	.entrypoint
	.maxstack 8
	newobj instance	void Foo::.ctor()
	pop
	ldstr	"PASSED - 2.13.41a - Was allowed to declare a valid .cctor()"
	call	void [System.Console]System.Console::WriteLine(class [mscorlib]System.String)
	ldc.i4	100
	ret
}