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:
authorRaja R Harinath <harinath@hurrynot.org>2006-05-25 15:16:31 +0400
committerRaja R Harinath <harinath@hurrynot.org>2006-05-25 15:16:31 +0400
commit12ca98404f9491e7f9200957f344f90257d7c5d0 (patch)
treeeb9caf2822b6ff7d7f6d82fa1ea2857c64ea5bfb /mcs/tests/gtest-211.cs
parent8df433eb15d1c370be20e6f214d2b25d2b7a3b5b (diff)
In gmcs:
Fix #78324 * expression.cs (Binary.DoResolve): Use Nullable.LiftedBinaryOperator also when one of the operands is a null literal. * generic.cs (Nullable.LiftedBinaryOperator.EmitEquality): Rewrite to improve clarity, and generate slightly better code. In tests: * gtest-211.cs: Add a couple more tests for better coverage. svn path=/trunk/mcs/; revision=61104
Diffstat (limited to 'mcs/tests/gtest-211.cs')
-rw-r--r--mcs/tests/gtest-211.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/mcs/tests/gtest-211.cs b/mcs/tests/gtest-211.cs
index 61182313474..3ab516ede8d 100644
--- a/mcs/tests/gtest-211.cs
+++ b/mcs/tests/gtest-211.cs
@@ -6,17 +6,24 @@ class MyTest {
}
public static void Main()
{
+ int? w = null;
int? x = null;
int? y = 0;
+ int? z = 1;
+
f (false, x == 0);
f (true, x != 0);
f (false, x == y);
f (true, x != y);
+ f (true, x == w);
+ f (false, x != w);
f (true, x == null);
f (false, x != null);
f (true, 0 == y);
f (false, 0 != y);
+ f (false, z == y);
+ f (true, z != y);
f (false, null == y);
f (true, null != y);
}