X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Ftest-null-operator-05.cs;h=ecbc6019059105b87a997e1ee08f830545102d92;hb=100bd760a46811121b4b47ebba941d4fb98486ab;hp=5fa5c6ff9b4ee213e5cf6d08f1cd88dbb6101ca6;hpb=9e91c36e1cf072da2fea19b6252fad485f95d78d;p=mono.git diff --git a/mcs/tests/test-null-operator-05.cs b/mcs/tests/test-null-operator-05.cs index 5fa5c6ff9b4..ecbc6019059 100644 --- a/mcs/tests/test-null-operator-05.cs +++ b/mcs/tests/test-null-operator-05.cs @@ -20,6 +20,15 @@ class C if (v2 != null) return 2; + var v3 = arr? [0].GetHashCode () ?? 724; + if (v3 != 724) + return 3; + + string[] ar3 = null; + var v4 = ar3?[0].Length; + if (v4 != null) + return 4; + // TODO: Disabled for now? // arr? [0] += 2; return 0; @@ -36,6 +45,10 @@ class C if (v2 != null) return 2; + var v3 = ci? [0].GetHashCode () ?? 724; + if (v3 != 724) + return 3; + // TODO: Disabled for now? // ci? [0] += 3; return 0;