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