Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.base / mips_pro.c
blobb659d82ded27c9755a888b0326faca64410995cb
1 /* Tests regarding examination of prologues. */
3 #ifdef PROTOTYPES
4 int
5 inner (int z)
6 #else
7 int
8 inner (z)
9 int z;
10 #endif
12 return 2 * z;
15 #ifdef PROTOTYPES
16 int
17 middle (int x)
18 #else
19 int
20 middle (x)
21 int x;
22 #endif
24 if (x == 0)
25 return inner (5);
26 else
27 return inner (6);
30 #ifdef PROTOTYPES
31 int
32 top (int y)
33 #else
34 int
35 top (y)
36 int y;
37 #endif
39 return middle (y + 1);
42 #ifdef PROTOTYPES
43 int
44 main (int argc, char **argv)
45 #else
46 int
47 main (argc, argv)
48 int argc;
49 char **argv;
50 #endif
52 #ifdef usestubs
53 set_debug_traps();
54 breakpoint();
55 #endif
56 return top (-1) + top (1);