blob: 5fe57a0b0dd8e41202795fef975da65003153278 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
//
// Really lame test, but it should be fine for now
//
#define TEST
#region "dunno"
#endregion
#if FALSE
#region Fields
#if B
int a;
#else
bool a;
#endif
#endregion
#endif
#if FLAG_FALSE
#pragma foo
namespace ns1
#else
#if FLAG_FALSE
#if FLAG_FALSE
#error No error
namespace ns2
#else
#line aa
namespace ns3
#endif
#else
#if FLAG_TRUE
namespace ns4
#elif FLAG_FALSE
namespace ns41
#else
namespace ns5
#endif
#endif
#endif
{
public class Y
{
public Y()
{
}
public void Run () {}
}
}
#if (X)
#endif
#if YY
//#errro this should not be printed // It used to compile under 1.x csc, but never under 2.x csc.
#if X
#elif Y
#else
#endif
#else
class X {
static int Main ()
{
#if (TEST)
ns5.Y y = new ns5.Y ();
y.Run ();
return 0;
#endif
}
}
#endif
|