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>2017-03-21 01:03:29 +0300
committerMarek Safar <marek.safar@gmail.com>2017-03-21 01:03:57 +0300
commit6c600321a77e53a498eee8c53538cd58f337afb4 (patch)
tree86857cecf65612538a39bbab88a5cb4689c0e714 /mcs/class/System.Core
parent2811e6d98478df221bb6b6695372963c1e2ddb5d (diff)
[System.Core] Update mobile test
Diffstat (limited to 'mcs/class/System.Core')
-rw-r--r--mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs b/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs
index 4fca0b34f42..7757ca9d881 100644
--- a/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs
+++ b/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs
@@ -511,6 +511,11 @@ namespace MonoTests.System.Linq.Expressions {
[Test]
public void CallNullableGetValueOrDefault () // #568989
{
+#if MOBILE
+ // ensure that int?.GetValueOrDefault won't be removed by the linker
+ Assert.AreEqual (0, ((int?)0).GetValueOrDefault (3));
+#endif
+
var value = Expression.Parameter (typeof (int?), "value");
var default_parameter = Expression.Parameter (typeof (int), "default");