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-09-22 16:35:16 +0400
committerMarek Safar <marek.safar@gmail.com>2008-09-22 16:35:16 +0400
commit1ab4bb8224f75e4e81763a2f53f99c940911a101 (patch)
tree5c21c4b78f6516f7fc95dfa76ded5ffac37dd5de /mcs/tests/gtest-413.cs
parentdb93626b5e97ea9ea645b8bc05c1f7349b4e7444 (diff)
New tests.
svn path=/trunk/mcs/; revision=113713
Diffstat (limited to 'mcs/tests/gtest-413.cs')
-rwxr-xr-xmcs/tests/gtest-413.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/gtest-413.cs b/mcs/tests/gtest-413.cs
new file mode 100755
index 00000000000..4b85aae0d82
--- /dev/null
+++ b/mcs/tests/gtest-413.cs
@@ -0,0 +1,20 @@
+using System;
+
+struct S
+{
+ public static long operator + (S f, long n)
+ {
+ return n;
+ }
+}
+
+class Test
+{
+ static int Main ()
+ {
+ int? n = 1;
+ S f = new S ();
+
+ return (f + n) != 1 ? 1 : 0;
+ }
+}