summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/pointers.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-10-30 21:44:15 +0000
committerTom Tromey <tromey@redhat.com>2008-10-30 21:44:15 +0000
commitf3134b888619774c6511acbf8d978bd7427ce1ad (patch)
treefecd95fd6c571f6a6d6bad373e635a6d9cdb068a /gdb/testsuite/gdb.base/pointers.exp
parent724b958c4168d40f59a35112c36ebf9e02c43d56 (diff)
gdb
* value.c (coerce_array): Use check_typedef. gdb/testsuite * gdb.base/pointers.exp: Add test. * gdb.base/pointers.c (k, S): New typedefs. (instance): New global.
Diffstat (limited to 'gdb/testsuite/gdb.base/pointers.exp')
-rw-r--r--gdb/testsuite/gdb.base/pointers.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/pointers.exp b/gdb/testsuite/gdb.base/pointers.exp
index 55321404cf..d7d17e777c 100644
--- a/gdb/testsuite/gdb.base/pointers.exp
+++ b/gdb/testsuite/gdb.base/pointers.exp
@@ -596,3 +596,7 @@ gdb_expect {
timeout { fail "(timeout) ptype ppppppC" }
}
+# Regression test for a crash.
+
+gdb_test "p instance.array_variable + 0" \
+ " = \\(long int \\*\\) 0x\[0-9a-f\]*"