Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / test-195.cs
1 using System;
2
3 public class Y {
4         static int count = 0;
5         
6         public static int C ()
7         {
8                 count++;
9                 if (count == 2)
10                         throw new Exception ("error");
11                 return 1;
12         }
13 }
14
15 class X {
16         int a = Y.C ();
17
18         X () : this (1)
19         {
20         }
21
22         X (int a) {
23         }
24
25         public static void Main ()
26         {
27                 X x = new X ();
28         }
29 }