|
| 1 | + |
| 2 | +// Microsoft (R) .NET Framework IL Disassembler. Version 4.7.3071.0 |
| 3 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | + |
| 5 | +// This is a repro case for GitHub issue #15412 ( https://github.com/dotnet/coreclr/issues/15412 ) |
| 6 | + |
| 7 | +// Metadata version: v4.0.30319 |
| 8 | +.assembly extern mscorlib |
| 9 | +{ |
| 10 | + .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. |
| 11 | + .ver 4:0:0:0 |
| 12 | +} |
| 13 | +.assembly repro2 |
| 14 | +{ |
| 15 | + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) |
| 16 | + .custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx |
| 17 | + 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. |
| 18 | + .hash algorithm 0x00008004 |
| 19 | + .ver 0:0:0:0 |
| 20 | +} |
| 21 | +.module repro2.exe |
| 22 | +// MVID: {07A1F03C-A750-4BCF-8997-C0AC2CBDB844} |
| 23 | +.imagebase 0x00400000 |
| 24 | +.file alignment 0x00000200 |
| 25 | +.stackreserve 0x00100000 |
| 26 | +.subsystem 0x0003 // WINDOWS_CUI |
| 27 | +.corflags 0x00000001 // ILONLY |
| 28 | +// Image base: 0x000001BBF9F70000 |
| 29 | + |
| 30 | + |
| 31 | +// =============== CLASS MEMBERS DECLARATION =================== |
| 32 | + |
| 33 | +.class private sequential ansi sealed SimpleArg.MyValue |
| 34 | + extends [mscorlib]System.ValueType |
| 35 | +{ |
| 36 | + .field public int32 IntValue |
| 37 | + .field public int32 PadValue |
| 38 | + .field public int64 LongValue |
| 39 | + .method public hidebysig specialname rtspecialname |
| 40 | + instance void .ctor(int32 init1, |
| 41 | + int64 init2) cil managed |
| 42 | + { |
| 43 | + // Code size 22 (0x16) |
| 44 | + .maxstack 8 |
| 45 | + IL_0000: ldarg.0 |
| 46 | + IL_0001: ldarg.1 |
| 47 | + IL_0002: stfld int32 SimpleArg.MyValue::IntValue |
| 48 | + IL_0007: ldarg.0 |
| 49 | + IL_0008: ldc.i4.0 |
| 50 | + IL_0009: stfld int32 SimpleArg.MyValue::PadValue |
| 51 | + IL_000e: ldarg.0 |
| 52 | + IL_000f: ldarg.2 |
| 53 | + IL_0010: stfld int64 SimpleArg.MyValue::LongValue |
| 54 | + IL_0015: ret |
| 55 | + } // end of method MyValue::.ctor |
| 56 | + |
| 57 | +} // end of class SimpleArg.MyValue |
| 58 | + |
| 59 | +.class private auto ansi SimpleArg.Holder |
| 60 | + extends [mscorlib]System.Object |
| 61 | +{ |
| 62 | + .field public static valuetype SimpleArg.MyValue RvaStatic at PreInitValue // {31, 0, 12 } |
| 63 | + .field public static valuetype SimpleArg.MyValue NormalStatic // {69, 0, 11 } |
| 64 | + .method public hidebysig specialname rtspecialname |
| 65 | + instance void .ctor() cil managed |
| 66 | + { |
| 67 | + // Code size 7 (0x7) |
| 68 | + .maxstack 8 |
| 69 | + IL_0000: ldarg.0 |
| 70 | + IL_0001: call instance void [mscorlib]System.Object::.ctor() |
| 71 | + IL_0006: ret |
| 72 | + } // end of method Holder::.ctor |
| 73 | + |
| 74 | + .method private hidebysig specialname rtspecialname static |
| 75 | + void .cctor() cil managed |
| 76 | + { |
| 77 | + // Code size 16 (0x10) |
| 78 | + .maxstack 8 |
| 79 | + IL_0000: ldc.i4.s 69 |
| 80 | + IL_0002: ldc.i4.s 11 |
| 81 | + IL_0004: conv.i8 |
| 82 | + IL_0005: newobj instance void SimpleArg.MyValue::.ctor(int32, |
| 83 | + int64) |
| 84 | + IL_000a: stsfld valuetype SimpleArg.MyValue SimpleArg.Holder::NormalStatic |
| 85 | + IL_000f: ret |
| 86 | + } // end of method Holder::.cctor |
| 87 | + |
| 88 | +} // end of class SimpleArg.Holder |
| 89 | + |
| 90 | +.class private auto ansi SimpleArg.Program |
| 91 | + extends [mscorlib]System.Object |
| 92 | +{ |
| 93 | + .method private hidebysig static int32 |
| 94 | + Method(valuetype SimpleArg.MyValue arg) cil managed noinlining |
| 95 | + { |
| 96 | + // Code size 8 (0x8) |
| 97 | + .maxstack 8 |
| 98 | + IL_0000: ldarga.s arg |
| 99 | + IL_0002: ldfld int32 SimpleArg.MyValue::IntValue |
| 100 | + IL_0007: ret |
| 101 | + } // end of method Program::Method |
| 102 | + |
| 103 | + .method private hidebysig static int32 |
| 104 | + Main(string[] args) cil managed |
| 105 | + { |
| 106 | + .entrypoint |
| 107 | + // Code size 59 (0x3b) |
| 108 | + .maxstack 2 |
| 109 | + .locals init (int32 V_0) |
| 110 | + IL_0000: ldsfld valuetype SimpleArg.MyValue SimpleArg.Holder::RvaStatic |
| 111 | + IL_0005: call int32 SimpleArg.Program::Method(valuetype SimpleArg.MyValue) |
| 112 | + IL_000a: stloc.0 |
| 113 | + IL_000b: ldloc.0 |
| 114 | + IL_000c: ldsfld valuetype SimpleArg.MyValue SimpleArg.Holder::NormalStatic |
| 115 | + IL_0011: call int32 SimpleArg.Program::Method(valuetype SimpleArg.MyValue) |
| 116 | + IL_0016: add |
| 117 | + IL_0017: stloc.0 |
| 118 | + IL_0018: ldloc.0 |
| 119 | + IL_0019: ldc.i4.s 100 |
| 120 | + IL_001b: bne.un.s IL_0029 |
| 121 | + |
| 122 | + IL_001d: ldstr "Passed" |
| 123 | + IL_0022: call void [mscorlib]System.Console::WriteLine(string) |
| 124 | + IL_0027: br.s IL_0039 |
| 125 | + |
| 126 | + IL_0029: ldstr "Failed" |
| 127 | + IL_002e: call void [mscorlib]System.Console::WriteLine(string) |
| 128 | + IL_0033: ldloc.0 |
| 129 | + IL_0034: call void [mscorlib]System.Console::WriteLine(int32) |
| 130 | + IL_0039: ldloc.0 |
| 131 | + IL_003a: ret |
| 132 | + } // end of method Program::Main |
| 133 | + |
| 134 | + .method public hidebysig specialname rtspecialname |
| 135 | + instance void .ctor() cil managed |
| 136 | + { |
| 137 | + // Code size 7 (0x7) |
| 138 | + .maxstack 8 |
| 139 | + IL_0000: ldarg.0 |
| 140 | + IL_0001: call instance void [mscorlib]System.Object::.ctor() |
| 141 | + IL_0006: ret |
| 142 | + } // end of method Program::.ctor |
| 143 | + |
| 144 | +} // end of class SimpleArg.Program |
| 145 | + |
| 146 | +.data PreInitValue = bytearray(1F 00 00 00 |
| 147 | + 00 00 00 00 |
| 148 | + 0C 00 00 00 00 00 00 00) |
| 149 | + |
| 150 | +// ============================================================= |
| 151 | + |
| 152 | +// *********** DISASSEMBLY COMPLETE *********************** |
| 153 | +// WARNING: Created Win32 resource file repro2.res |
0 commit comments