Initial creation of sourceware repository
[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
4static int
5recurse (a)
6 int a;
7{
8 int b = 0;
9
10 if (a == 1)
11 return 1;
12
13 b = a;
14 b *= recurse (a - 1);
15 return b;
16}
17
18main()
19{
20#ifdef usestubs
21 set_debug_traps();
22 breakpoint();
23#endif
24 recurse (10);
25}
This page took 0.023386 seconds and 4 git commands to generate.