diff options
author | Marek Safar <marek.safar@gmail.com> | 2017-03-21 01:03:29 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-03-21 01:03:57 +0300 |
commit | 6c600321a77e53a498eee8c53538cd58f337afb4 (patch) | |
tree | 86857cecf65612538a39bbab88a5cb4689c0e714 /mcs/class/System.Core/Test | |
parent | 2811e6d98478df221bb6b6695372963c1e2ddb5d (diff) |
[System.Core] Update mobile test
Diffstat (limited to 'mcs/class/System.Core/Test')
-rw-r--r-- | mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs | 5 |
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"); |