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.
103 lines
3.2 KiB
Plaintext
103 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 initobj.exe{
|
|
.permission reqmin ['mscorlib']System.Security.Permissions.SecurityPermissionAttribute ( "SkipVerification" = true )
|
|
}
|
|
.class public value sealed valClass{
|
|
.field public int32 int32_Field
|
|
.field public static int32 int32_SField
|
|
.field public float32 float32_Field
|
|
.field public static float32 float32_SField
|
|
.field public int32* int32_ptr_Field
|
|
.field public static int32* int32_ptr_SField
|
|
.method public void .ctor(){
|
|
ret
|
|
}
|
|
}
|
|
.class public _initoj {
|
|
.method public static int32 main(class System.String[]) {
|
|
.entrypoint
|
|
.locals (value class valClass, int32)
|
|
.maxstack 10
|
|
ldloca 0
|
|
initobj valClass
|
|
ldloca 0
|
|
ldc.i4 0xAB
|
|
stfld int32 valClass::int32_Field
|
|
ldc.i4 0xCD
|
|
stsfld int32 valClass::int32_SField
|
|
ldloca 0
|
|
ldc.r4 8.8
|
|
stfld float32 valClass::float32_Field
|
|
ldc.r4 9.9
|
|
stsfld float32 valClass::float32_SField
|
|
ldloca 0
|
|
ldloca 1
|
|
stfld int32* valClass::int32_ptr_Field
|
|
ldloca 1
|
|
stsfld int32* valClass::int32_ptr_SField
|
|
ldloca 0
|
|
ldfld int32 valClass::int32_Field
|
|
ldc.i4 0xAB
|
|
bne.un FAIL
|
|
ldsfld int32 valClass::int32_SField
|
|
ldc.i4 0xCD
|
|
bne.un FAIL
|
|
ldloca 0
|
|
ldfld float32 valClass::float32_Field
|
|
ldc.r4 8.8
|
|
bne.un FAIL
|
|
ldsfld float32 valClass::float32_SField
|
|
ldc.r4 9.9
|
|
bne.un FAIL
|
|
ldloca 0
|
|
ldfld int32* valClass::int32_ptr_Field
|
|
ldloca 1
|
|
bne.un FAIL
|
|
ldsfld int32* valClass::int32_ptr_SField
|
|
ldloca 1
|
|
bne.un FAIL
|
|
ldloca 0
|
|
initobj valClass
|
|
ldloca 0
|
|
ldfld int32 valClass::int32_Field
|
|
ldc.i4 0x0
|
|
bne.un FAIL
|
|
ldsfld int32 valClass::int32_SField
|
|
ldc.i4 0xCD
|
|
bne.un FAIL
|
|
ldloca 0
|
|
ldfld float32 valClass::float32_Field
|
|
ldc.r4 0.0
|
|
bne.un FAIL
|
|
ldsfld float32 valClass::float32_SField
|
|
ldc.r4 9.9
|
|
bne.un FAIL
|
|
ldloca 0
|
|
ldfld int32* valClass::int32_ptr_Field
|
|
ldnull
|
|
bne.un FAIL
|
|
ldsfld int32* valClass::int32_ptr_SField
|
|
ldloca 1
|
|
bne.un FAIL
|
|
PASS:
|
|
ldc.i4 0x0000
|
|
ret
|
|
FAIL:
|
|
ldc.i4 0x0001
|
|
ret
|
|
}
|
|
}
|