1 /* Copyright 2004, 2008 Bob Proulx <bob@proulx.com>
2 Distributed under the two-clause BSD licence;
3 see the COPYING file for details. */
9 /* This code is commented out. "#if 0 then" */
11 /* This code is passed through. "#if 0 else" */
15 /* This code is passed through. "#if 1 then" */
17 /* This code is passed through. "#if 1 else" */
21 int foo1() { return 0; }
29 int foo2() { return 0; }
32 #if FOOB == 42 || FOO == 1
33 intx
foo3() { return 0; }
35 #error FOO not 1 or BAR not 1
38 #if FOOB != 42 && FOO != 1
39 #error FOOB not 42 and FOO not 1
41 int foo4() { return 0; }
44 #if FOOB == 42 || FOO != 1
45 int foo5() { return 0; }
47 #error FOOB is 42 or FOO is not 1
50 #if FOO != 1 || FOOB != 42
51 #error FOO is 1 or FOOB is 42
53 int foo6() { return 0; }