Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-923.cs
1 using System;
2
3 public struct Location
4 {
5         public int x;
6         public int y;
7 }
8
9 public struct LocationWrapper
10 {
11         public Location location;
12 }
13
14 class Program
15 {
16         static void Main ()
17         {
18         }
19
20         public static void Test (out Location location)
21         {
22                 location.x = 0;
23                 location.y = location.x;
24         }
25
26         public static void Test (LocationWrapper member)
27         {
28                 member.location.x = 0;
29                 member.location.y = member.location.x;
30         }
31
32         public static void Test (out LocationWrapper member)
33         {
34                 member.location.x = 0;
35                 member.location.y = member.location.x;
36         }
37 }