e2f6c96628
gdb/testsuite/ 2014-03-19 Pedro Alves <palves@redhat.com> * gdb.base/async.c (main): Add "jump here" and "until here" line marker comments. * gdb.base/async.exp (jump_here): New global. (jump& test): Use it. (until_here): New global. (until& test): Use it.
48 lines
366 B
C
48 lines
366 B
C
|
|
|
|
#ifdef PROTOTYPES
|
|
int
|
|
foo (void)
|
|
#else
|
|
int
|
|
foo ()
|
|
#endif
|
|
{
|
|
int x, y;
|
|
|
|
x = 5;
|
|
y = 3;
|
|
|
|
return x + y;
|
|
}
|
|
|
|
#ifdef PROTOTYPES
|
|
int
|
|
main (void)
|
|
#else
|
|
int
|
|
main ()
|
|
#endif
|
|
{
|
|
int y, z;
|
|
|
|
y = 2;
|
|
z = 9;
|
|
y = foo ();
|
|
z = y;
|
|
y = y + 2; /* jump here */
|
|
y = baz ();
|
|
return 0; /* until here */
|
|
}
|
|
|
|
|
|
#ifdef PROTOTYPES
|
|
int
|
|
baz (void)
|
|
#else
|
|
int
|
|
baz ()
|
|
#endif
|
|
{
|
|
return 5;
|
|
}
|