From 16ac9e45ff6228547e54fe6a68e2d19e199730eb Mon Sep 17 00:00:00 2001 From: jbevain Date: Wed, 7 Apr 2010 12:48:00 +0000 Subject: [PATCH] net_4_0 change git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@154937 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- .../Test/System.Linq.Expressions/ExpressionTest_AddChecked.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_AddChecked.cs b/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_AddChecked.cs index 3f8fe6067a..d56fe5e933 100644 --- a/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_AddChecked.cs +++ b/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_AddChecked.cs @@ -194,11 +194,12 @@ namespace MonoTests.System.Linq.Expressions // These are invalid: InvalidOperation (Byte.MaxValue, 2); InvalidOperation (SByte.MaxValue, 2); - +#if !NET_4_0 // Stuff that just fits in 32 bits, does not overflow: MustNotOverflow (Int16.MaxValue, 2); + MustNotOverflow (Int16.MaxValue, 2); MustNotOverflow (UInt16.MaxValue, 2); - +#endif // Doubles, floats, do not overflow MustNotOverflow (Single.MaxValue, 1); MustNotOverflow (Double.MaxValue, 1); -- 2.11.4.GIT