aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/constvars.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-10-17 20:22:58 +0000
committerKevin Buettner <kevinb@redhat.com>2002-10-17 20:22:58 +0000
commitabe1a5d0efb706925b171e04e3b11398c01ad3e0 (patch)
tree3da1958a405d4fb98288a8bfb2a62e4823fbc850 /gdb/testsuite/gdb.base/constvars.c
parentb5b0480a1015484fb53dabd390031bbdffdc28e1 (diff)
downloadbinutils-abe1a5d0efb706925b171e04e3b11398c01ad3e0.zip
binutils-abe1a5d0efb706925b171e04e3b11398c01ad3e0.tar.gz
binutils-abe1a5d0efb706925b171e04e3b11398c01ad3e0.tar.bz2
* gdb.base/constvars.c (struct crass, struct crisp): New structs.
* gdb.base/constvars.exp (ptype crass, ptype crisp): New tests.
Diffstat (limited to 'gdb/testsuite/gdb.base/constvars.c')
-rw-r--r--gdb/testsuite/gdb.base/constvars.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/constvars.c b/gdb/testsuite/gdb.base/constvars.c
index b0ce752..1602577 100644
--- a/gdb/testsuite/gdb.base/constvars.c
+++ b/gdb/testsuite/gdb.base/constvars.c
@@ -166,6 +166,11 @@ main (void)
const volatile char * const volatile vagary = &victor;
const volatile unsigned char * const volatile vendor = &vicar;
+
+ /* various structs with const members */
+
+ struct crass { char * const ptr; } crass;
+ struct crisp { char * const *ptr; } crisp;
/* misc. references */
/*