forked from Imagelibrary/binutils-gdb
import gdb-1999-08-30 snapshot
This commit is contained in:
48
gdb/testsuite/gdb.base/async.c
Normal file
48
gdb/testsuite/gdb.base/async.c
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
#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;
|
||||
y = baz ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#ifdef PROTOTYPES
|
||||
int
|
||||
baz (void)
|
||||
#else
|
||||
int
|
||||
baz ()
|
||||
#endif
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
Reference in New Issue
Block a user