Merge pull request #4816 from BrzVlad/fix-remoting-exception
[mono.git] / mcs / tests / test-879.cs
1 struct AStruct
2 {
3         public object foo;
4
5         public AStruct (int i)
6                 : this ()
7         {
8         }
9 }
10
11 public class Tests
12 {
13         public static int Main ()
14         {
15                 for (int i = 0; i < 100; ++i) {
16                         AStruct a;
17
18                         a = new AStruct (5);
19                         if (a.foo != null)
20                                 return 1;
21
22                         a.foo = i + 1;
23                 }
24
25                 System.Console.WriteLine ("ok");
26                 return 0;
27         }
28 }