[eglib] In AIX/generic POSIX, handle null addresses better (#17892)
[mono-project.git] / mcs / tests / test-null-operator-23.cs
blob558328a6ebf7e3e50df7f92720459d66fc1064ed
1 using System;
3 public class X
5 string field;
7 public static int Main ()
9 X x = null;
11 try {
12 var res = (x?.field).ToString()?.Length;
13 return 1;
14 } catch (NullReferenceException) {
18 return 0;