aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/miscexprs.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-10-31 20:59:22 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-10-31 20:59:22 +0000
commitaaa68313b8a2c635670eb03130a4d06f195c93c5 (patch)
treede551a4e45ed596c745a0877cde3b92ee0112712 /gdb/testsuite/gdb.base/miscexprs.c
parentb433d00bbcd022648dc2dc07f12a4adad7940fce (diff)
downloadgdb-aaa68313b8a2c635670eb03130a4d06f195c93c5.zip
gdb-aaa68313b8a2c635670eb03130a4d06f195c93c5.tar.gz
gdb-aaa68313b8a2c635670eb03130a4d06f195c93c5.tar.bz2
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.base/miscexprs.c')
-rw-r--r--gdb/testsuite/gdb.base/miscexprs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/miscexprs.c b/gdb/testsuite/gdb.base/miscexprs.c
index 41bd29f..580255d 100644
--- a/gdb/testsuite/gdb.base/miscexprs.c
+++ b/gdb/testsuite/gdb.base/miscexprs.c
@@ -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;