File: recursive.expout

package info (click to toggle)
unifdef 2.12-1.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,852 kB
  • sloc: ansic: 2,111; sh: 352; makefile: 56; perl: 33
file content (26 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Copyright 2004 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 FOO
int foo() { return 0; }
#else
#error FOO not defined
#endif

#if BAR
int foo() { return 0; }
#elif FOO
int bar() { return 0; }
#else
#error FOO not defined
#endif

int main()
{
  foo();
  bar();
}