diff options
author | Marek Safar <marek.safar@gmail.com> | 2015-02-10 11:31:22 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2015-02-10 11:31:22 +0300 |
commit | a74bac2da2923bf7436bb7e2bef3fabe510f308d (patch) | |
tree | 06ffd9adb912f8d516762e672de4c68630f071e0 /mcs/tests/gtest-629.cs | |
parent | c7a4778737bd531addc20cf694dd14972204c644 (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.cs | 15 |
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 |