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:
authorMartin Baulig <martin@novell.com>2002-11-24 18:37:47 +0300
committerMartin Baulig <martin@novell.com>2002-11-24 18:37:47 +0300
commitcc3768019703f466ae65e2528b1766d80de9ac0d (patch)
tree7b20b91c482bb2b629593d18e3b31b57a9eeded5 /mcs/tests/test-175.cs
parent7b999e7fbe2ff2c0bde8cfa75f8bd6ed387289de (diff)
2002-11-24 Martin Baulig <martin@ximian.com>
* test-175.cs: New test for bug #30443. svn path=/trunk/mcs/; revision=9166
Diffstat (limited to 'mcs/tests/test-175.cs')
-rw-r--r--mcs/tests/test-175.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/mcs/tests/test-175.cs b/mcs/tests/test-175.cs
new file mode 100644
index 00000000000..2a2ea42ad10
--- /dev/null
+++ b/mcs/tests/test-175.cs
@@ -0,0 +1,37 @@
+using System;
+
+struct RVA {
+ public uint value;
+
+ public RVA (uint val)
+ {
+ value = val;
+ }
+
+ public static implicit operator RVA (uint val)
+ {
+ return new RVA (val);
+ }
+
+ public static implicit operator uint (RVA rva)
+ {
+ return rva.value;
+ }
+}
+
+class X
+{
+ static int Main ()
+ {
+ RVA a = 10;
+ RVA b = 20;
+
+ if (a > b)
+ return 1;
+
+ if (a + b != 30)
+ return 2;
+
+ return 0;
+ }
+}