]> code.delx.au - gnu-emacs/blob - test/cedet/tests/testspp.c
Add CEDET tests.
[gnu-emacs] / test / cedet / tests / testspp.c
1 /* Attempt to test the C preprocessor
2 *
3 */
4
5 int some_fcn (){}
6
7
8 #ifndef MOOSE
9 int pre_show_moose(){}
10 #endif
11
12 #ifdef MOOSE
13 int pre_dont_show_moose(){}
14 #endif
15
16 #if !defined(MOOSE)
17 int pre_show_moose_if(){}
18 #endif
19
20 #if defined(MOOSE)
21 int pre_dont_show_moose_if(){}
22 #endif
23
24 #define MOOSE
25
26 #if 0
27 int dont_show_function_if_0(){}
28 #endif
29
30 #if 1
31 int show_function_if_1(){}
32 #endif
33
34 #ifdef MOOSE
35 int moose_function(){}
36 #endif
37
38 #ifndef MOOSE
39 int dont_show_moose(){}
40 #endif
41
42 #if defined(MOOSE)
43 int moose_function_if(){}
44 #endif
45
46 #if !defined(MOOSE)
47 int dont_show_moose_if() {}
48 #endif
49
50 #undef MOOSE
51
52 #ifdef MOOSE
53 int no_handy_moose(){}
54 #endif
55
56 #ifndef MOOSE
57 int show_moose_else() {}
58 #else
59 int no_show_moose_else(){}
60 #endif
61
62
63 #ifdef MOOSE
64 int no_show_moose_else_2() {}
65 #else
66 int show_moose_else_2() {}
67 #endif
68
69 #if defined(MOOSE)
70 int no_show_moose_elif() {}
71 #elif !defined(MOOSE)
72 int show_moose_elif() {}
73 #else
74 int no_show_moose_elif_else() {}
75 #endif
76
77 #if defined(MOOSE)
78 int no_show_moose_if_elif_2() {}
79 #elif defined(COW)
80 int no_show_moose_elif_2() {}
81 #else
82 int show_moose_elif_else() {}
83 #endif
84