Fix paginate-*.exp races
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / recurse.c
CommitLineData
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#ifdef PROTOTYPES
5static int
6recurse (int a)
7#else
c906108c
SS
8static int
9recurse (a)
10 int a;
085dd6e6 11#endif
c906108c
SS
12{
13 int b = 0;
14
15 if (a == 1)
16 return 1;
17
18 b = a;
19 b *= recurse (a - 1);
20 return b;
21}
22
085dd6e6 23int main()
c906108c 24{
c906108c 25 recurse (10);
085dd6e6 26 return 0;
c906108c 27}
This page took 1.492104 seconds and 4 git commands to generate.