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-11-04 21:43:40 +0300
committerMarek Safar <marek.safar@gmail.com>2008-11-04 21:43:40 +0300
commitec87272a1c8bc8e6081236d808ec63cbdac4a0e3 (patch)
treea06aec582b30f0ee6e158a8009fb7fede3f8e8ac /mcs/tests/gtest-422.cs
parent74a2ec9df800b68730d2f822dd74dbe782a84c4e (diff)
New test.
svn path=/trunk/mcs/; revision=117912
Diffstat (limited to 'mcs/tests/gtest-422.cs')
-rw-r--r--mcs/tests/gtest-422.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/mcs/tests/gtest-422.cs b/mcs/tests/gtest-422.cs
new file mode 100644
index 00000000000..0fdcfd13053
--- /dev/null
+++ b/mcs/tests/gtest-422.cs
@@ -0,0 +1,31 @@
+class A
+{
+ public static bool operator > (A a, object b)
+ {
+ return false;
+ }
+
+ public static bool operator < (A a, object b)
+ {
+ return true;
+ }
+}
+
+class C
+{
+ public static int Main ()
+ {
+ return new C ().Test () ? 1 : 0;
+ }
+
+ int? Id {
+ get { return 1; }
+ }
+
+ bool Test ()
+ {
+ A a = new A ();
+ bool b = a > Id && a < Id;
+ return b;
+ }
+}