1 /* Copyright 2004, 2008 Bob Proulx <bob@proulx.com>
2 Distributed under the two-clause BSD licence;
3 see the COPYING file for details. */
8 /* This code is passed through. "#if 0 else" */
10 /* This code is passed through. "#if 1 then" */
12 #if defined(FOO) || defined(FOOB)
13 int foo1() { return 0; }
15 #error FOO or FOOB not defined
18 #if defined(FOOB) || defined(FOO)
19 int foo2() { return 0; }
21 #error FOO or FOOB not defined
24 #if defined(FOO) && defined(FOOB)
25 int foo3() { return 0; }
27 #error FOO and FOOB not defined
30 #if defined(FOOB) && defined(FOO)
31 int foo4() { return 0; }
33 #error FOO and FOOB not defined