Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* This program is used to test the "jump" command. There's nothing |
2 | particularly deep about the functionality nor names in here. | |
3 | */ | |
4 | ||
085dd6e6 JM |
5 | #ifdef PROTOTYPES |
6 | static int square (int x) | |
7 | #else | |
c906108c SS |
8 | static int square (x) |
9 | int x; | |
085dd6e6 | 10 | #endif |
c906108c SS |
11 | { |
12 | return x*x; | |
13 | } | |
14 | ||
15 | ||
085dd6e6 | 16 | int main () |
c906108c SS |
17 | { |
18 | int i = 99; | |
19 | ||
20 | i++; | |
21 | i = square (i); | |
22 | i--; | |
085dd6e6 | 23 | return 0; |
c906108c | 24 | } |