2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / tests / test-partial-23.cs
blob573e8c2a3ec42588e403c723a807aedaababc672
1 // Compiler options: -warnaserror
3 partial class C
5 int i;
6 partial void Partial_A ();
7 partial void Partial_A () { i += 1; }
9 partial void Partial_B () { i += 3; }
10 partial void Partial_B ();
12 static byte s;
13 static partial void Partial_S () { s += 5; }
14 static partial void Partial_S ();
16 public static int Main ()
18 C c = new C ();
19 c.Partial_A ();
20 c.Partial_B ();
22 if (c.i != 4)
23 return 1;
25 Partial_S ();
26 if (s != 5)
27 return 2;
29 return 0;