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>2015-02-10 11:31:22 +0300
committerMarek Safar <marek.safar@gmail.com>2015-02-10 11:31:22 +0300
commita74bac2da2923bf7436bb7e2bef3fabe510f308d (patch)
tree06ffd9adb912f8d516762e672de4c68630f071e0 /mcs/tests/gtest-629.cs
parentc7a4778737bd531addc20cf694dd14972204c644 (diff)
[mcs] Fixed casts rules don't apply to strings and arrays. Fixes #26892
Diffstat (limited to 'mcs/tests/gtest-629.cs')
-rw-r--r--mcs/tests/gtest-629.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/tests/gtest-629.cs b/mcs/tests/gtest-629.cs
new file mode 100644
index 00000000000..7ca06620a4f
--- /dev/null
+++ b/mcs/tests/gtest-629.cs
@@ -0,0 +1,15 @@
+// Compiler options: -unsafe
+
+using System;
+using System.Collections.Generic;
+
+public class Program
+{
+ public unsafe static void Main ()
+ {
+ var list = new List<object> () { "" };
+ fixed (char *c = (string)list[0]) {
+
+ }
+ }
+} \ No newline at end of file