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>2009-10-14 19:21:47 +0400
committerMarek Safar <marek.safar@gmail.com>2009-10-14 19:21:47 +0400
commitfea6dc9d1925719d3368cb33466f48b3bd821c9e (patch)
tree9beb9705ccb5995725d722152f6495cfcfc0fc8e /mcs/tests/test-731.cs
parentbdd0e08251866f942724d4a35c9ce68ce88188e5 (diff)
New test.
svn path=/trunk/mcs/; revision=144110
Diffstat (limited to 'mcs/tests/test-731.cs')
-rw-r--r--mcs/tests/test-731.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/test-731.cs b/mcs/tests/test-731.cs
new file mode 100644
index 00000000000..0041d9405bc
--- /dev/null
+++ b/mcs/tests/test-731.cs
@@ -0,0 +1,19 @@
+using System;
+
+// Static array initializers test
+
+enum S
+{
+ Foo = 5
+}
+
+class C
+{
+ public static int Main ()
+ {
+ S[] s = new S [] { S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo };
+ Console.WriteLine (s [5]);
+
+ return 0;
+ }
+}