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

50 lines
387 B
C
Raw Normal View History

1999-08-31 03:14:27 +02:00
#ifdef PROTOTYPES
int
foo (void)
#else
int
foo ()
#endif
{
int y;
volatile int x;
1999-08-31 03:14:27 +02:00
x = 5; x = 5;
1999-08-31 03:14:27 +02:00
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 */
1999-08-31 03:14:27 +02:00
y = baz ();
return 0; /* until here */
1999-08-31 03:14:27 +02:00
}
#ifdef PROTOTYPES
int
baz (void)
#else
int
baz ()
#endif
{
return 5;
}