Fix the monotouch build
[mono.git] / mcs / tests / test-99.cs
old mode 100755 (executable)
new mode 100644 (file)
index ccf5fc4..79c5d7d
@@ -1,3 +1,7 @@
+//
+// Tests the resulting value of operator + (U x, E y)
+// as well as implicit conversions in the above operator.
+//
 using System;
 class X {
        enum A : int {
@@ -28,6 +32,13 @@ class X {
                // Now try the implicit conversions for underlying types in enum operators
                byte b = 1;
                short s = (short) (Test.A + b);
+
+               //
+               // Make sure that other operators still work
+               if (Test.A != Test.A)
+                       return 3;
+               if (Test.A == Test.B)
+                       return 4;
                
                return 0;
        }