diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-06 21:41:07 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-06 21:41:07 +0000 |
commit | 0ba2eb0fb60577c618e188ff4a879a721199395d (patch) | |
tree | 64ed66ac6c8de43429b99ff96d72c6e0ca88d5e1 /gdb/testsuite/gdb.base | |
parent | 731145cb171b848d564a696e81153166524eb35a (diff) | |
download | fsf-binutils-gdb-0ba2eb0fb60577c618e188ff4a879a721199395d.zip fsf-binutils-gdb-0ba2eb0fb60577c618e188ff4a879a721199395d.tar.gz fsf-binutils-gdb-0ba2eb0fb60577c618e188ff4a879a721199395d.tar.bz2 |
2012-12-06 Pedro Alves <palves@redhat.com>
Tom Tromey <tromey@redhat.com>
* valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
testsuite
* gdb.base/exprs.exp: Add tests for cast to void.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/exprs.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/exprs.exp b/gdb/testsuite/gdb.base/exprs.exp index c6a07fa..f3de09e 100644 --- a/gdb/testsuite/gdb.base/exprs.exp +++ b/gdb/testsuite/gdb.base/exprs.exp @@ -270,3 +270,7 @@ gdb_test {print v_int_array_init[1]@1} { = \{20\}} # gdb's {} extension gdb_test_no_output "set variable v_short_array\[0\] = 42" gdb_test "print {short} v_short_array" "$decimal = 42" + +# Regression tests for cast to void. +gdb_test "print (void) v_int_pointer" " = void" +gdb_test "print & (void) v_char" "value not located in memory." |