Commit | Line | Data |
---|---|---|
104c1213 JM |
1 | |
2 | ||
3 | #ifdef PROTOTYPES | |
4 | int | |
5 | foo (void) | |
6 | #else | |
7 | int | |
8 | foo () | |
9 | #endif | |
10 | { | |
11 | int x, y; | |
12 | ||
13 | x = 5; | |
14 | y = 3; | |
15 | ||
16 | return x + y; | |
17 | } | |
18 | ||
19 | #ifdef PROTOTYPES | |
20 | int | |
21 | main (void) | |
22 | #else | |
23 | int | |
24 | main () | |
25 | #endif | |
26 | { | |
27 | int y, z; | |
28 | ||
29 | y = 2; | |
30 | z = 9; | |
31 | y = foo (); | |
32 | z = y; | |
33 | y = y + 2; | |
34 | y = baz (); | |
35 | return 0; | |
36 | } | |
37 | ||
38 | ||
39 | #ifdef PROTOTYPES | |
40 | int | |
41 | baz (void) | |
42 | #else | |
43 | int | |
44 | baz () | |
45 | #endif | |
46 | { | |
47 | return 5; | |
48 | } |