repo.or.cz
/
mono-project
/
dkf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-02-10 Jeffrey Stedfast <fejj@novell.com>
[mono-project/dkf.git]
/
mcs
/
tests
/
test-167.cs
blob
b86e49df66834680488a708983296fc0e9dd5e03
1
//
2
// See bug 31834 for details about this bug
3
//
4
5
using
System
;
6
7
class
X
8
{
9
static int
Test
(
params
Foo
[]
foo
)
10
{
11
if
(
foo
.
Length
!=
1
)
12
return
1
;
13
14
if
(
foo
[
0
] !=
Foo
.
A
)
15
return
2
;
16
17
return
0
;
18
}
19
20
enum
Foo
{
21
A
,
B
22
}
23
24
static int
Main
()
25
{
26
int
v
=
Test
(
Foo
.
A
);
27
if
(
v
!=
0
)
28
return
v
;
29
30
MyEnum
[]
arr
=
new
MyEnum
[
2
];
31
arr
[
0
] =
MyEnum
.
c
;
32
33
if
(
arr
[
0
] !=
MyEnum
.
c
)
34
return
3
;
35
return
0
;
36
}
37
38
enum
MyEnum {a,b,c}
;
39
}