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:
authorMiguel de Icaza <miguel@gnome.org>2002-04-08 12:29:31 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-04-08 12:29:31 +0400
commit37f334d38b5091a1030bcac96200bc380475cfb0 (patch)
tree92866b545da360b70cc33ab835553754e2d39dae /mcs/tests/test-99.cs
parent4fd9b07b9de06a458f0447ffd08fbf3b29767a14 (diff)
Add new tests
svn path=/trunk/mcs/; revision=3676
Diffstat (limited to 'mcs/tests/test-99.cs')
-rwxr-xr-xmcs/tests/test-99.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/tests/test-99.cs b/mcs/tests/test-99.cs
new file mode 100755
index 00000000000..385330dfa55
--- /dev/null
+++ b/mcs/tests/test-99.cs
@@ -0,0 +1,25 @@
+using System;
+class X {
+ enum A : int {
+ a = 1, b, c
+ }
+
+ static int Main ()
+ {
+ int v = 1;
+ object foo = (v + A.a);
+ object foo2 = (1 + A.a);
+
+ if (foo.GetType ().ToString () != "X+A"){
+ Console.WriteLine ("Expression evaluator bug in E operator + (U x, E y)");
+ return 1;
+ }
+
+ if (foo2.GetType ().ToString () != "X+A"){
+ Console.WriteLine ("Constant folder bug in E operator + (U x, E y)");
+ return 2;
+ }
+
+ return 0;
+ }
+}