X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Fgtest-545.cs;h=5668a7dca7afda43128c2fc6bc564adfd2b44edc;hb=edbc5c2334e10836479d1cc528c68d4ad5b47440;hp=63ca06b2b5484df6b984bec316713cbbe0980409;hpb=58fdac7b8a191881c721c1e04592fc4a8b4b6ab1;p=mono.git diff --git a/mcs/tests/gtest-545.cs b/mcs/tests/gtest-545.cs index 63ca06b2b54..5668a7dca7a 100644 --- a/mcs/tests/gtest-545.cs +++ b/mcs/tests/gtest-545.cs @@ -21,6 +21,20 @@ public static class ApplicationContext if (res) return 2; + int? re = 3 + (short?) 7; + if (re != 10) + return 3; + + int a = 2; + int b = 2; + int? c = (byte?)a + b; + if (c != 4) + return 4; + + c = a + (ushort?)b; + if (c != 4) + return 5; + return 0; } }