diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-07-13 23:28:30 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-07-13 23:28:30 +0400 |
commit | 5757fa30be4eff77b0879bfcc2a0dfae37518d15 (patch) | |
tree | 97481983bc2fecfd819b1fa0fe21289498522db0 /mcs/tests/test-279.cs | |
parent | d54df3e29d0d165784b02701b37ec5badfb70679 (diff) |
2004-07-13 Marek Safar <marek.safar@seznam.cz>
* test-279.cs: New test for #61293.
svn path=/trunk/mcs/; revision=31103
Diffstat (limited to 'mcs/tests/test-279.cs')
-rw-r--r-- | mcs/tests/test-279.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-279.cs b/mcs/tests/test-279.cs new file mode 100644 index 00000000000..be1d7fba81f --- /dev/null +++ b/mcs/tests/test-279.cs @@ -0,0 +1,24 @@ +using System; + +class FlagsAttributeDemo +{ + // Define an Enum with FlagsAttribute. + [FlagsAttribute] + enum MultiHue : short + { + Black = 0, + Red = 1, + Green = 2, + Blue = 4 + }; + + static int Main( ) + { + string s = ((MultiHue)7).ToString (); + + Console.WriteLine (s); + if (s != "Red, Green, Blue") + return 1; + return 0; + } +} |