* gdb.base/miscexprs.c (main): Add usage of preprocessor

symbol `STORAGE' to allow to choose the storage class of
	the local datastructures.
	* gdb.base/miscexprs.exp: Handle setting a `-DSTORAGE=...'
	compiler directive.
This commit is contained in:
Corinna Vinschen
2001-10-31 20:59:22 +00:00
parent b433d00bbc
commit aaa68313b8
3 changed files with 26 additions and 7 deletions

View File

@@ -7,27 +7,27 @@ marker1 ()
int
main ()
{
struct {
STORAGE struct {
char c[100];
} cbig;
struct {
STORAGE struct {
int i[800];
} ibig;
struct {
STORAGE struct {
long l[900];
} lbig;
struct {
STORAGE struct {
float f[200];
} fbig;
struct {
STORAGE struct {
double d[300];
} dbig;
struct {
STORAGE struct {
short s[400];
} sbig;