bring Mono Security to monotouch
[mcs.git] / tests / test-167.cs
blobb86e49df66834680488a708983296fc0e9dd5e03
1 //
2 // See bug 31834 for details about this bug
3 //
5 using System;
7 class X
9 static int Test (params Foo[] foo)
11 if (foo.Length != 1)
12 return 1;
14 if (foo [0] != Foo.A)
15 return 2;
17 return 0;
20 enum Foo {
21 A, B
24 static int Main ()
26 int v = Test (Foo.A);
27 if (v != 0)
28 return v;
30 MyEnum [] arr = new MyEnum [2];
31 arr [0] = MyEnum.c;
33 if (arr [0] != MyEnum.c)
34 return 3;
35 return 0;
38 enum MyEnum {a,b,c};