]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/unifdef/tests/if1-k.expout
Add 'contrib/unifdef/' from commit '0da44885831dc0a43c4ca6ff04a2430993cc0a80'
[FreeBSD/FreeBSD.git] / contrib / unifdef / tests / if1-k.expout
1 /* Copyright 2004, 2008 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 /* This code is passed through. "#if 0 else" */
9
10 /* This code is passed through. "#if 1 then" */
11
12 #if FOO
13 int foo() { return 0; }
14 #else
15 #error FOO not defined
16 #endif
17
18 #if BAR
19 int foo() { return 0; }
20 #elif FOO
21 int bar() { return 0; }
22 #else
23 #error FOO not defined
24 #endif
25
26 int main()
27 {
28   foo();
29   bar();
30 }