/* Copyright 2004 Bob Proulx Distributed under the two-clause BSD licence; see the COPYING file for details. */ #include #include #if defined(FOO) || defined(FOOB) int foo1() { return 0; } #else #error FOO or FOOB not defined #endif #if defined(FOOB) || defined(FOO) int foo2() { return 0; } #else #error FOO or FOOB not defined #endif #if defined(FOO) && defined(FOOB) int foo3() { return 0; } #else #error FOO and FOOB not defined #endif #if defined(FOOB) && defined(FOO) int foo4() { return 0; } #else #error FOO and FOOB not defined #endif int main() { foo1(); foo2(); foo3(); foo4(); }