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 | 5 | static int square (int x) |
c906108c | 6 | { |
78f98cca | 7 | return x*x; /* out-of-func */ |
c906108c SS |
8 | } |
9 | ||
10 | ||
085dd6e6 | 11 | int main () |
c906108c SS |
12 | { |
13 | int i = 99; | |
14 | ||
15 | i++; | |
78f98cca AA |
16 | i = square (i); /* bp-on-call */ |
17 | i--; /* bp-on-non-call */ | |
085dd6e6 | 18 | return 0; |
c906108c | 19 | } |