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:
authorMarek Safar <marek.safar@gmail.com>2016-06-14 20:02:52 +0300
committerMarek Safar <marek.safar@gmail.com>2016-06-14 20:03:59 +0300
commitbc5e8fbf5cfb08a8e7fb245efeee6ffc4fe6d85e (patch)
tree52a6afa12cb858e80b985af50817a0f1859ae9de /mcs/tests/test-937.cs
parentd6025dec809f31deb55093a988a0b78d6098ff6e (diff)
[mcs] Support System.Object forwarded to any assembly in any references order
Diffstat (limited to 'mcs/tests/test-937.cs')
-rw-r--r--mcs/tests/test-937.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/tests/test-937.cs b/mcs/tests/test-937.cs
new file mode 100644
index 00000000000..b577d34e7f6
--- /dev/null
+++ b/mcs/tests/test-937.cs
@@ -0,0 +1,15 @@
+// Compiler options: /noconfig /nostdlib -r:../class/lib/net_4_x/Facades/System.Runtime.dll -r:../class/lib/net_4_x/mscorlib.dll
+
+using System;
+
+class TypeForwarderOfSystemObject
+{
+ void TestAttributeReadDoesNotCrash ()
+ {
+ System.Runtime.InteropServices.Marshal.ReadByte (IntPtr.Zero, 0);
+ }
+
+ static void Main ()
+ {
+ }
+}