Reorganized GDB tests - base

This commit is contained in:
Stan Shebs
1994-06-07 01:57:15 +00:00
parent 33268150cb
commit ef44eed173
57 changed files with 21351 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
/* Test that things still (sort of) work when compiled without -g. */
int dataglobal = 3; /* Should go in global data */
static int datalocal = 4; /* Should go in local data */
int bssglobal; /* Should go in global bss */
static int bsslocal; /* Should go in local bss */
int
inner (x)
int x;
{
return 2 * x;
}
static int
middle (x)
int x;
{
return 2 * inner (x);
}
int
top (x)
int x;
{
return 2 * middle (x);
}
int
main (argc, argv)
int argc;
char **argv;
{
return top (argc);
}