2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-60.cs
blob5fe57a0b0dd8e41202795fef975da65003153278
1 //
2 // Really lame test, but it should be fine for now
3 //
4 #define TEST
6 #region "dunno"
7 #endregion
9 #if FALSE
10 #region Fields
11 #if B
12 int a;
13 #else
14 bool a;
15 #endif
16 #endregion
17 #endif
19 #if FLAG_FALSE
20 #pragma foo
21 namespace ns1
22 #else
23 #if FLAG_FALSE
24 #if FLAG_FALSE
25 #error No error
26 namespace ns2
27 #else
28 #line aa
29 namespace ns3
30 #endif
31 #else
32 #if FLAG_TRUE
33 namespace ns4
34 #elif FLAG_FALSE
35 namespace ns41
36 #else
37 namespace ns5
38 #endif
39 #endif
40 #endif
42 public class Y
44 public Y()
48 public void Run () {}
52 #if (X)
53 #endif
55 #if YY
56 //#errro this should not be printed // It used to compile under 1.x csc, but never under 2.x csc.
57 #if X
58 #elif Y
59 #else
60 #endif
61 #else
62 class X {
63 static int Main ()
65 #if (TEST)
66 ns5.Y y = new ns5.Y ();
68 y.Run ();
69 return 0;
70 #endif
73 #endif