xref: /freebsd/contrib/unifdef/tests/if2.c (revision fb3ef04d2028110f06d68b09009f1f2ca0f4128e)
1 /* Copyright 2004 Bob Proulx <bob@proulx.com>
2 Distributed under the two-clause BSD licence;
3 see the COPYING file for details. */
4 
5 #include <stdio.h>
6 #include <stdlib.h>
7 
8 #if defined(FOO)
foo()9 int foo() { return 0; }
10 #else
11 #error FOO not defined
12 #endif
13 
main()14 int main()
15 {
16   foo();
17 }
18