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>2011-03-18 17:32:51 +0300
committerMarek Safar <marek.safar@gmail.com>2011-03-18 17:32:51 +0300
commitc501ba9f877d0dc4b8efd06ccce94f8247fa7506 (patch)
treebc1f2d2d1f467089ad68960b342deb00254880f7 /mcs/tests/gtest-fixedbuffer-10.cs
parent29ecab06f2320c3a976d783b75595688cd72d8f0 (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.cs20
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)
+ {
+ }
+}