do not check order sequence if option /order was not used
[mono.git] / mcs / tests / test-partial-10.cs
1 // Compiler options: -langversion:default
2
3 using System;
4
5 namespace Test2
6 {
7         public interface Base
8         { }
9
10         public partial class Foo : Base
11         {
12                 public static int f = 10;
13         }
14
15         public partial class Foo : Base
16         {
17                 public static int f2 = 9;               
18         }
19 }
20
21 namespace Test3
22 {
23         public interface Base
24         { }
25
26         public partial struct Foo : Base
27         {
28                 public static int f = 10;
29         }
30
31         public partial struct Foo : Base
32         {
33                 public static int f2 = 9;
34         }
35 }
36
37 class X
38 {
39         static int Main ()
40         {
41                 if (Test2.Foo.f != 10)
42                         return 1;
43                 
44                 if (Test2.Foo.f2 != 9)
45                         return 1;
46                 
47                 if (Test3.Foo.f != 10)
48                         return 1;
49
50                 if (Test3.Foo.f2 != 9)
51                         return 1;
52                 
53                 Console.WriteLine ("OK");
54                 return 0;
55         }
56 }