diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs index 08be82c5d..99acb2186 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs @@ -944,6 +944,17 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty ToCode(null, (int? a) => a & (int?)2); ToCode(null, (int? a) => a & a); } + + public void CheckedArithmetic() + { + checked + { + ToCode(null, (int a, int b) => a + b); + ToCode(null, (int a, int b) => a - b); + ToCode(null, (int a, int b) => a * b); + ToCode(null, (int a) => (short)a); + } + } } internal static class Extensions