Merge pull request #1066 from esdrubal/bug19313
[mono.git] / mcs / tests / test-primary-ctor-07.cs
1 using System;
2
3 struct S (int x)
4 {
5         public int y = x;
6
7         public S (char x)
8                 : this (1)
9         {
10         }
11
12         static S ()
13         {
14         }
15 }
16
17 class X
18 {
19         public static int Main ()
20         {
21                 if (new S (-5).y != -5)
22                         return 1;
23
24                 if (new S ('x').y != 1)
25                         return 2;
26
27                 return 0;
28         }
29 }