summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/constvars.exp
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.exp
parentb5b0480a1015484fb53dabd390031bbdffdc28e1 (diff)
downloadbinutils-gdb-abe1a5d0efb706925b171e04e3b11398c01ad3e0.tar.gz
* 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.exp')
-rw-r--r--gdb/testsuite/gdb.base/constvars.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/constvars.exp b/gdb/testsuite/gdb.base/constvars.exp
index bb062ef5cb9..897a025af0c 100644
--- a/gdb/testsuite/gdb.base/constvars.exp
+++ b/gdb/testsuite/gdb.base/constvars.exp
@@ -278,6 +278,11 @@ proc do_constvar_tests {} {
gdb_test "print *locust" " = 70"
local_compiler_xfail_check
gdb_test "ptype locust" "type = double \\* const"
+
+ local_compiler_xfail_check
+ gdb_test "ptype crass" "type = struct crass \{\[\r\n\]+\[\ \t\]+char \\* const ptr;\[\r\n\]+\}"
+ local_compiler_xfail_check
+ gdb_test "ptype crisp" "type = struct crisp \{\[\r\n\]+\[\ \t\]+char \\* const \\*ptr;\[\r\n\]+\}"
}
do_constvar_tests