binutils-gdb/gdb/testsuite/gdb.base/mips_pro.c

29 lines
290 B
C
Raw Normal View History

/* Tests regarding examination of prologues. */
1999-06-28 18:06:02 +02:00
int
inner (int z)
{
return 2 * z;
}
1999-06-28 18:06:02 +02:00
int
middle (int x)
{
if (x == 0)
return inner (5);
else
return inner (6);
}
1999-06-28 18:06:02 +02:00
int
top (int y)
{
return middle (y + 1);
}
1999-06-28 18:06:02 +02:00
int
main (int argc, char **argv)
{
return top (-1) + top (1);
}