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>2006-12-01 03:52:55 +0300
committerMiguel de Icaza <miguel@gnome.org>2006-12-01 03:52:55 +0300
commitb42877c89287abc1ab9ec53c6ec4de0900cb0ab6 (patch)
tree33171bc68932e12a17be7e725bc1747c99c50e3e /mcs/tests/test-540.cs
parent920940b39ab458f40fa41b4d7bb8ae565de4e349 (diff)
Revert the recent fixes until 1-2-2 is branched
svn path=/trunk/mcs/; revision=68791
Diffstat (limited to 'mcs/tests/test-540.cs')
-rw-r--r--mcs/tests/test-540.cs73
1 files changed, 0 insertions, 73 deletions
diff --git a/mcs/tests/test-540.cs b/mcs/tests/test-540.cs
index adc6e3faea5..e69de29bb2d 100644
--- a/mcs/tests/test-540.cs
+++ b/mcs/tests/test-540.cs
@@ -1,73 +0,0 @@
-class A
-{
- public static implicit operator byte (A mask)
- {
- return 22;
- }
-}
-
-public class Constraint
-{
- const A lm = null;
-
- enum E1 : int { A }
- enum E2 : byte { A }
-
- public static Constraint operator !(Constraint m)
- {
- return null;
- }
-
- public static Constraint operator +(Constraint m)
- {
- return null;
- }
-
- public static Constraint operator ~(Constraint m)
- {
- return null;
- }
-
- public static Constraint operator -(Constraint m)
- {
- return null;
- }
-
- static void Foo (object o)
- {
- }
-
- public static int Main ()
- {
-
- Foo (!(Constraint)null);
- Foo (~(Constraint)null);
- Foo (+(Constraint)null);
- Foo (-(Constraint)null);
-
- const byte b1 = +0;
- const byte b2 = +b1;
- const byte b3 = (byte)0;
- const int a = -2147483648;
- const long l = -9223372036854775808;
- const long l2 = -uint.MaxValue;
- const E1 e = (E1)~E2.A;
-
- unchecked {
- if (-int.MinValue != int.MinValue)
- return 1;
- }
-
- int b = -lm;
- if (b != -22)
- return 2;
-
- uint ua = 2;
- if (-ua != -2)
- return 3;
-
- System.Console.WriteLine ("OK");
- return 0;
- }
-
-} \ No newline at end of file