[Mono.Profiler.Log] Support MLPD version 13
[mono.git] / mcs / tests / test-279.cs
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 }