old-cross-binutils/gdb/testsuite/gdb.base/mips_pro.c
1999-04-16 01:35:26 +00:00

35 lines
363 B
C

/* Tests regarding examination of prologues. */
int
inner (z)
int z;
{
return 2 * z;
}
int
middle (x)
int x;
{
if (x == 0)
return inner (5);
else
return inner (6);
}
int
top (y)
int y;
{
return middle (y + 1);
}
int
main (argc, argv)
{
#ifdef usestubs
set_debug_traps();
breakpoint();
#endif
return top (-1) + top (1);
}