Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Tests regarding examination of prologues. */ |
2 | ||
085dd6e6 JM |
3 | int |
4 | inner (int z) | |
c906108c SS |
5 | { |
6 | return 2 * z; | |
7 | } | |
8 | ||
085dd6e6 JM |
9 | int |
10 | middle (int x) | |
c906108c SS |
11 | { |
12 | if (x == 0) | |
13 | return inner (5); | |
14 | else | |
15 | return inner (6); | |
16 | } | |
17 | ||
085dd6e6 JM |
18 | int |
19 | top (int y) | |
c906108c SS |
20 | { |
21 | return middle (y + 1); | |
22 | } | |
23 | ||
085dd6e6 JM |
24 | int |
25 | main (int argc, char **argv) | |
c906108c | 26 | { |
c906108c SS |
27 | return top (-1) + top (1); |
28 | } |