[mcs] Add codegen for null operator on result of awaited instance expression of prope...
[mono.git] / mcs / tests / test-821.cs
1 // Compiler options: -unsafe
2
3 unsafe struct S
4 {
5         T Test<T> ()
6         {
7                 return default (T);
8         }
9
10         public void M ()
11         {
12                 fixed (S* ptr = &this)
13                         ptr->Test<string> ();
14         }
15 }
16
17 class A
18 {
19         public static int Main ()
20         {
21                 new S ().M ();
22                 return 0;
23         }
24 }