Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Pratap M <ravi@mono-cvs.ximian.com>2001-12-02 13:04:15 +0300
committerRavi Pratap M <ravi@mono-cvs.ximian.com>2001-12-02 13:04:15 +0300
commita4295440e1c643c54c9919f0db0ae99e175a3905 (patch)
tree0d6d41fa8720873761a9e1f39215c24cdcf64093 /mcs/tests/test-40.cs
parentdfff35163c78161161af83fca1dca13268782b7a (diff)
2001-12-02 Ravi Pratap <ravi@ximian.com>
* test-40.cs : Update to now test recursive definitions with constants hooked up. svn path=/trunk/mcs/; revision=1503
Diffstat (limited to 'mcs/tests/test-40.cs')
-rw-r--r--mcs/tests/test-40.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/mcs/tests/test-40.cs b/mcs/tests/test-40.cs
index f2e1d29e18e..d640c5a4970 100644
--- a/mcs/tests/test-40.cs
+++ b/mcs/tests/test-40.cs
@@ -5,7 +5,8 @@ public class Blah {
enum Bar {
a = MyEnum.Foo,
b = A.c,
- c = MyEnum.Bar
+ c = MyEnum.Bar,
+ d = myconstant
}
public enum MyEnum : byte {
@@ -23,6 +24,8 @@ public class Blah {
enum AA : byte { a, b }
enum BB : ulong { x, y }
+
+ const int myconstant = 30;
public static int Main ()
{
@@ -61,6 +64,11 @@ public class Blah {
if (j != 1)
return 1;
+ j = (int) Bar.d;
+
+ if (j != 30)
+ return 1;
+
Console.WriteLine ("Enum emission test okay");
return 0;
}