diff options
author | Marek Safar <marek.safar@gmail.com> | 2011-03-18 17:32:51 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2011-03-18 17:32:51 +0300 |
commit | c501ba9f877d0dc4b8efd06ccce94f8247fa7506 (patch) | |
tree | bc1f2d2d1f467089ad68960b342deb00254880f7 /mcs/tests/gtest-fixedbuffer-10.cs | |
parent | 29ecab06f2320c3a976d783b75595688cd72d8f0 (diff) |
[679530] Fixed size buffers are not subject to definite assignment checking
Diffstat (limited to 'mcs/tests/gtest-fixedbuffer-10.cs')
-rw-r--r-- | mcs/tests/gtest-fixedbuffer-10.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/gtest-fixedbuffer-10.cs b/mcs/tests/gtest-fixedbuffer-10.cs new file mode 100644 index 00000000000..b65653a438a --- /dev/null +++ b/mcs/tests/gtest-fixedbuffer-10.cs @@ -0,0 +1,20 @@ +// Compiler options: -unsafe + +using System; + +public class Program +{ + public static void Main () + { + new TestStruct ("a"); + } +} + +public unsafe struct TestStruct +{ + private fixed byte symbol[30]; + + public TestStruct (string a) + { + } +} |