mirror of https://github.com/icsharpcode/ILSpy.git
9 changed files with 105 additions and 12 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
namespace ICSharpCode.Decompiler.Tests.TestCases.ILPretty |
||||
{ |
||||
internal class BaseClass |
||||
{ |
||||
public int importsClausePosition; |
||||
} |
||||
|
||||
internal class Issue1681 : BaseClass |
||||
{ |
||||
public void Test() |
||||
{ |
||||
_ = importsClausePosition; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,42 @@
@@ -0,0 +1,42 @@
|
||||
// Metadata version: v4.0.30319 |
||||
.assembly extern mscorlib |
||||
{ |
||||
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. |
||||
.ver 4:0:0:0 |
||||
} |
||||
.assembly ConsoleApp11 |
||||
{ |
||||
.ver 1:0:0:0 |
||||
} |
||||
.module ConsoleApp11.exe |
||||
// MVID: {B973FCD6-A9C4-48A9-8291-26DDC248E208} |
||||
.imagebase 0x00400000 |
||||
.file alignment 0x00000200 |
||||
.stackreserve 0x00100000 |
||||
.subsystem 0x0003 // WINDOWS_CUI |
||||
.corflags 0x00020003 // ILONLY 32BITPREFERRED |
||||
// Image base: 0x000001C4B6C90000 |
||||
|
||||
.class private auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.ILPretty.BaseClass |
||||
extends [mscorlib]System.Object |
||||
{ |
||||
|
||||
.field public int32 importsClausePosition |
||||
|
||||
} |
||||
|
||||
.class private auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.ILPretty.Issue1681 |
||||
extends ICSharpCode.Decompiler.Tests.TestCases.ILPretty.BaseClass |
||||
{ |
||||
|
||||
.method public hidebysig instance void Test() cil managed |
||||
{ |
||||
// Code size 18 (0x12) |
||||
.maxstack 8 |
||||
ldarg.0 |
||||
ldfld int32 class ICSharpCode.Decompiler.Tests.TestCases.ILPretty.BaseClass::importsClausePosition |
||||
pop |
||||
ret |
||||
} // end of method Issue1681::Test |
||||
|
||||
} |
Loading…
Reference in new issue