Merge pull request #487 from mayerwin/patch-1
[mono.git] / mcs / tests / test-127.cs
1 //
2 // It is possible to invoke Enum methods on an enum type.
3 //
4 using System;
5
6 enum Test {
7         A,
8         B,
9         C
10 }
11
12 class X {
13
14         public static int Main ()
15         {
16                 Test test = Test.A;
17
18                 if (!Test.IsDefined (typeof (Test), test))
19                         return 1;
20
21                 return 0;
22         }
23 }