Files
yallie 9fa3874800 Added the contents of the archive.
Moved the original file to the archive subfolder.
2017-11-20 16:11:42 +03:00

68 lines
1.3 KiB
Plaintext

// ==++==
//
//
// Copyright (c) 2002 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to be bound by the
// terms of this license.
//
// You must not remove this notice, or any other, from this software.
//
//
// ==--==
.assembly callsuper.exe{}
.class public Super {
.method public void .ctor(){
.maxstack 10
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
.method public int32 SuperMethod(int32) {
.maxstack 10
ldarg 1
ldc.i4 0x2
mul
ret
}
}
.class public callsuper extends Super {
.method public void .ctor(){
.maxstack 10
ldarg.0
call instance void Super::.ctor()
ret
}
.method public int32 SuperMethod(int32) {
.maxstack 10
ldarg 1
ldc.i4 0x3
mul
ret
}
.method public static int32 main(class [mscorlib]System.String[]) {
.entrypoint
.maxstack 10
newobj instance void callsuper::.ctor()
ldc.i4 0x5
call instance int32 Super::SuperMethod(int32)
ldc.i4 0xA
ceq
brfalse FAIL
newobj void callsuper::.ctor()
ldc.i4 0x5
callvirt int32 callsuper::SuperMethod(int32)
ldc.i4 0xF
ceq
brfalse FAIL
PASS:
ldc.i4 0x0000
ret
FAIL:
ldc.i4 0x0001
ret
}
}