diff options
author | Marek Safar <marek.safar@gmail.com> | 2009-10-14 19:21:47 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2009-10-14 19:21:47 +0400 |
commit | fea6dc9d1925719d3368cb33466f48b3bd821c9e (patch) | |
tree | 9beb9705ccb5995725d722152f6495cfcfc0fc8e /mcs/tests/test-731.cs | |
parent | bdd0e08251866f942724d4a35c9ce68ce88188e5 (diff) |
New test.
svn path=/trunk/mcs/; revision=144110
Diffstat (limited to 'mcs/tests/test-731.cs')
-rw-r--r-- | mcs/tests/test-731.cs | 19 |
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; + } +} |