mirror of
https://github.com/SSCLI/sscli_20021101
synced 2026-06-08 12:28:57 +00:00
9fa3874800
Moved the original file to the archive subfolder.
153 lines
3.2 KiB
Plaintext
153 lines
3.2 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 field_tests.exe{}
|
|
.class public field_tests {
|
|
.field public int8 i1Field
|
|
.field public int16 i2Field
|
|
.field public int32 i4Field
|
|
.field public int64 i8Field
|
|
.field public float32 r4Field
|
|
.field public float64 r8Field
|
|
.field public class field_tests ptrField
|
|
.field public static int8 i1SField
|
|
.field public static int16 i2SField
|
|
.field public static int32 i4SField
|
|
.field public static int64 i8SField
|
|
.field public static float32 r4SField
|
|
.field public static float64 r8SField
|
|
.field public static class field_tests ptrSField
|
|
.method public void .ctor() {
|
|
.maxstack 10
|
|
ldarg.0
|
|
call instance void [mscorlib]System.Object::.ctor()
|
|
ret
|
|
}
|
|
.method public void initialize() {
|
|
.maxstack 10
|
|
ldarg 0
|
|
ldc.i4 0x1
|
|
stfld int8 field_tests::i1Field
|
|
ldarg 0
|
|
ldc.i4 0x2
|
|
stfld int16 field_tests::i2Field
|
|
ldarg 0
|
|
ldc.i4 0x4
|
|
stfld int32 field_tests::i4Field
|
|
ldarg 0
|
|
ldc.i8 0x8
|
|
stfld int64 field_tests::i8Field
|
|
ldarg 0
|
|
ldc.r4 4.4
|
|
stfld float32 field_tests::r4Field
|
|
ldarg 0
|
|
ldc.r8 8.8
|
|
stfld float64 field_tests::r8Field
|
|
ldarg 0
|
|
ldarg 0
|
|
stfld class field_tests field_tests::ptrField
|
|
ldc.i4 0x1
|
|
stsfld int8 field_tests::i1SField
|
|
ldc.i4 0x2
|
|
stsfld int16 field_tests::i2SField
|
|
ldc.i4 0x4
|
|
stsfld int32 field_tests::i4SField
|
|
ldc.i8 0x8
|
|
stsfld int64 field_tests::i8SField
|
|
ldc.r4 4.4
|
|
stsfld float32 field_tests::r4SField
|
|
ldc.r8 8.8
|
|
stsfld float64 field_tests::r8SField
|
|
ldarg 0
|
|
stsfld class field_tests field_tests::ptrSField
|
|
ret
|
|
}
|
|
.method public static int32 main(class [mscorlib]System.String[]) {
|
|
.entrypoint
|
|
.maxstack 10
|
|
.locals (class field_tests)
|
|
newobj void field_tests::.ctor()
|
|
dup
|
|
stloc 0
|
|
call instance void field_tests::initialize()
|
|
ldloc 0
|
|
ldfld int8 field_tests::i1Field
|
|
ldc.i4 0x1
|
|
ceq
|
|
brfalse FAIL
|
|
ldloc 0
|
|
ldfld int16 field_tests::i2Field
|
|
ldc.i4 0x2
|
|
ceq
|
|
brfalse FAIL
|
|
ldloc 0
|
|
ldfld int32 field_tests::i4Field
|
|
ldc.i4 0x4
|
|
ceq
|
|
brfalse FAIL
|
|
ldloc 0
|
|
ldfld int64 field_tests::i8Field
|
|
ldc.i8 0x8
|
|
ceq
|
|
brfalse FAIL
|
|
ldloc 0
|
|
ldfld float32 field_tests::r4Field
|
|
ldc.r4 4.4
|
|
ceq
|
|
brfalse FAIL
|
|
ldloc 0
|
|
ldfld float64 field_tests::r8Field
|
|
ldc.r8 8.8
|
|
ceq
|
|
brfalse FAIL
|
|
ldloc 0
|
|
ldfld class field_tests field_tests::ptrField
|
|
isinst field_tests
|
|
brfalse FAIL
|
|
ldsfld int8 field_tests::i1SField
|
|
ldc.i4 0x1
|
|
ceq
|
|
brfalse FAIL
|
|
ldsfld int16 field_tests::i2SField
|
|
ldc.i4 0x2
|
|
ceq
|
|
brfalse FAIL
|
|
ldsfld int32 field_tests::i4SField
|
|
ldc.i4 0x4
|
|
ceq
|
|
brfalse FAIL
|
|
ldsfld int64 field_tests::i8SField
|
|
ldc.i8 0x8
|
|
ceq
|
|
brfalse FAIL
|
|
ldsfld float32 field_tests::r4SField
|
|
ldc.r4 4.4
|
|
ceq
|
|
brfalse FAIL
|
|
ldsfld float64 field_tests::r8SField
|
|
ldc.r8 8.8
|
|
ceq
|
|
brfalse FAIL
|
|
ldsfld class field_tests field_tests::ptrSField
|
|
isinst field_tests
|
|
brfalse FAIL
|
|
PASS:
|
|
ldc.i4 0x0000
|
|
ret
|
|
FAIL:
|
|
ldc.i4 0x0001
|
|
ret
|
|
}
|
|
}
|