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-10-20 02:06:29 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-10-20 02:06:29 +0400
commite31738c4a9bc4286635b0b13763b29d3c723464e (patch)
treec8399ca64c220e9ca51442dc2fa9370491241461 /mcs/tests/test-40.cs
parent150abfac35f8ecfe37dadf8177ec19e0abb87b14 (diff)
Update test
svn path=/trunk/mcs/; revision=8403
Diffstat (limited to 'mcs/tests/test-40.cs')
-rw-r--r--mcs/tests/test-40.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/tests/test-40.cs b/mcs/tests/test-40.cs
index 17399b7150a..8bd84c4bbc5 100644
--- a/mcs/tests/test-40.cs
+++ b/mcs/tests/test-40.cs
@@ -77,6 +77,19 @@ public class Blah {
if (e.ToString () != "d")
return 15;
+ //
+ // Test "U operator (E x, E x)"
+ //
+ // Notice that the Microsoft C# compiler wont compile the following
+ // code, that is a bug in their compiler, see section 14.7.5 of the
+ // spec.
+
+ if ((A.c - A.a) != 2)
+ return 16;
+
+ if ((A.c - 1) != A.b)
+ return 17;
+
Console.WriteLine ("Value: " + e.ToString ());
Console.WriteLine ("Enum emission test okay");
return 0;