mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-03 03:41:49 +00:00
fb3ef04d20
git-subtree-dir: contrib/unifdef git-subtree-mainline:3b7ffacdee
git-subtree-split:0da4488583
29 lines
509 B
C
29 lines
509 B
C
/* Copyright 2004, 2008 Bob Proulx <bob@proulx.com>
|
|
Distributed under the two-clause BSD licence;
|
|
see the COPYING file for details. */
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#if 0
|
|
/* This code is commented out. "#if 0 then" */
|
|
#else
|
|
/* This code is passed through. "#if 0 else" */
|
|
#endif
|
|
|
|
#if 1
|
|
/* This code is passed through. "#if 1 then" */
|
|
#else
|
|
/* This code is passed through. "#if 1 else" */
|
|
#endif
|
|
|
|
#if defined(FOO)
|
|
int foo() { return 0; }
|
|
#else
|
|
#error FOO not defined
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
foo();
|
|
}
|