]>
Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Trivial code used to test watchpoints in recursive code and |
2 | auto-deletion of watchpoints as they go out of scope. */ | |
3 | ||
085dd6e6 JM |
4 | static int |
5 | recurse (int a) | |
c906108c SS |
6 | { |
7 | int b = 0; | |
8 | ||
9 | if (a == 1) | |
10 | return 1; | |
11 | ||
12 | b = a; | |
13 | b *= recurse (a - 1); | |
14 | return b; | |
15 | } | |
16 | ||
085dd6e6 | 17 | int main() |
c906108c | 18 | { |
c906108c | 19 | recurse (10); |
085dd6e6 | 20 | return 0; |
c906108c | 21 | } |