65435862c7c8eebfb8a020b30f41ff46994f67be
[mono.git] / mcs / tests / test-60.cs
1 //
2 // Really lame test, but it should be fine for now
3 //
4 #define TEST
5
6 #region "dunno"
7 #endregion
8
9 #if FLAG_FALSE
10         namespace ns1
11 #else
12         #if FLAG_FALSE
13                         #if FLAG_FALSE
14                                 namespace ns2
15                         #else
16                                 namespace ns3
17                         #endif
18         #else
19                 #if FLAG_TRUE
20                         namespace ns4
21                 #elif FLAG_FALSE
22                         namespace ns41
23                 #else
24                         namespace ns5
25                 #endif
26         #endif
27 #endif
28 {
29         public class Y
30         {
31                 public Y()
32                 {
33                 }
34
35                 public void Run () {}
36         }
37 }
38
39 #if (X)
40 #endif
41
42 #if YY
43 //#errro this should not be printed // It used to compile under 1.x csc, but never under 2.x csc.
44 #if X
45 #elif Y
46 #else
47 #endif
48 #else
49 class X {
50         static int Main ()
51         {
52 #if (TEST)
53                 ns5.Y y = new ns5.Y ();
54
55                 y.Run ();
56                 return 0;
57 #endif
58         }
59 }
60 #endif
61