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:
authorMarek Safar <marek.safar@gmail.com>2008-12-19 18:02:59 +0300
committerMarek Safar <marek.safar@gmail.com>2008-12-19 18:02:59 +0300
commita57ea8054f9aa8d23cc011720f32a36321d97b0c (patch)
treeeb94a4bc1301aa2f499310c4790b591028d22742 /mcs/tests/test-540.cs
parent3c666ed0337fc5bbbbb5ec6322826573d5509297 (diff)
Set svn:eol-style
svn path=/trunk/mcs/; revision=121849
Diffstat (limited to 'mcs/tests/test-540.cs')
-rw-r--r--mcs/tests/test-540.cs144
1 files changed, 72 insertions, 72 deletions
diff --git a/mcs/tests/test-540.cs b/mcs/tests/test-540.cs
index adc6e3faea5..e417deafc16 100644
--- a/mcs/tests/test-540.cs
+++ b/mcs/tests/test-540.cs
@@ -1,73 +1,73 @@
-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;
- }
-
+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