Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Earl <slide.o.mix@gmail.com>2016-09-23 17:47:35 +0300
committerAlex Earl <slide.o.mix@gmail.com>2016-09-23 17:47:35 +0300
commitbde769972290124c0dcf418d0a3d860f4a695453 (patch)
treeda65924302a939a7798ae6a7f1eebb3349913f98 /mcs/tests/test-16628-lib.il
parent91014ffb91118990f08795b73309fd9a0782da39 (diff)
Fix 16628
This changes the IL parser to have the same behavior as ilasm.exe from MS https://bugzilla.xamarin.com/show_bug.cgi?id=16628
Diffstat (limited to 'mcs/tests/test-16628-lib.il')
-rw-r--r--mcs/tests/test-16628-lib.il33
1 files changed, 33 insertions, 0 deletions
diff --git a/mcs/tests/test-16628-lib.il b/mcs/tests/test-16628-lib.il
new file mode 100644
index 00000000000..ca46405c0fd
--- /dev/null
+++ b/mcs/tests/test-16628-lib.il
@@ -0,0 +1,33 @@
+.assembly bz16628.typeforwarder2 {}
+.assembly extern mscorlib {}
+.assembly extern bz16628.typeforwardee2 {}
+
+.class extern public forwarder NSwForwardee2.Foo_SPECIAL{
+ .assembly extern bz16628.typeforwardee2
+}
+
+.class public auto ansi beforefieldinit NSwForwardee2.Bar_SPECIAL
+ extends [mscorlib]System.Object
+{
+ .field public static int32 A
+ .method public hidebysig specialname rtspecialname
+ instance void .ctor() cil managed
+ {
+ // Code size 7 (0x7)
+ .maxstack 8
+ IL_0000: ldarg.0
+ IL_0001: call instance void [mscorlib]System.Object::.ctor()
+ IL_0006: ret
+ } // end of method Foo::.ctor
+
+ .method private hidebysig specialname rtspecialname static
+ void .cctor() cil managed
+ {
+ // Code size 8 (0x8)
+ .maxstack 8
+ IL_0000: ldc.i4.s 320
+ IL_0002: stsfld int32 NSwForwardee2.Bar_SPECIAL::A
+ IL_0007: ret
+ } // end of method Foo::.cctor
+}
+