forked from Imagelibrary/binutils-gdb
* 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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user