repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix LLVM linker flags for 6.0.
[mono-project.git]
/
mcs
/
tests
/
test-279.cs
blob
37376db0a3c31865726dd5cb5b4c078d2275228e
1
using
System
;
2
3
class
FlagsAttributeDemo
4
{
5
// Define an Enum with FlagsAttribute.
6
[
FlagsAttribute
]
7
enum
MultiHue
:
short
8
{
9
Black
=
0
,
10
Red
=
1
,
11
Green
=
2
,
12
Blue
=
4
13
};
14
15
public static int
Main
( )
16
{
17
string
s
= ((
MultiHue
)
7
).
ToString
();
18
19
Console
.
WriteLine
(
s
);
20
if
(
s
!=
"Red, Green, Blue"
)
21
return
1
;
22
return
0
;
23
}
24
}