diff options
author | Christina Schimpe <christina.schimpe@intel.com> | 2021-11-16 10:58:11 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2021-11-19 11:29:52 +0000 |
commit | 5ee59b4bf20b9109064fda706503628b3e4b2d7a (patch) | |
tree | 64472fd60d4937a3d50b54f9644432448622ff36 /gdb/testsuite/gdb.cp/ptype-cv-cp.exp | |
parent | 999a4952a2f32e60769b2c3baefb274613754e6d (diff) | |
download | fsf-binutils-gdb-5ee59b4bf20b9109064fda706503628b3e4b2d7a.zip fsf-binutils-gdb-5ee59b4bf20b9109064fda706503628b3e4b2d7a.tar.gz fsf-binutils-gdb-5ee59b4bf20b9109064fda706503628b3e4b2d7a.tar.bz2 |
gdb/testsuite: Extend tests for print of cv qualifiers
This commit supplements whatis and ptype command tests for print of
const-volatile qualifiers.
gdb/testsuite/ChangeLog:
2021-11-16 Christina Schimpe <christina.schimpe@intel.com>
* gdb.cp/ptype-cv-cp.cc: New const and volatile typedef
variables.
* gdb.cp/ptype-cv-cp.exp: Add new tests.
Diffstat (limited to 'gdb/testsuite/gdb.cp/ptype-cv-cp.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/ptype-cv-cp.exp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp b/gdb/testsuite/gdb.cp/ptype-cv-cp.exp index b3574cb..5518a4e 100644 --- a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp +++ b/gdb/testsuite/gdb.cp/ptype-cv-cp.exp @@ -41,3 +41,15 @@ if {[test_compiler_info {gcc-[0-3]-*}] setup_xfail "gcc/45997" "*-*-*" } gdb_test "ptype v_volatile_const_my_int" "type = const volatile int" + +gdb_test "ptype v2_const_my_int" "type = const int" +gdb_test "whatis v2_const_my_int" "type = const my_int" + +gdb_test "ptype v2_volatile_my_int" "type = volatile int" +gdb_test "whatis v2_volatile_my_int" "type = volatile my_int" + +gdb_test "ptype v2_const_volatile_my_int" "type = const volatile int" +gdb_test "whatis v2_const_volatile_my_int" "type = const volatile my_int" + +gdb_test "ptype v2_volatile_const_my_int" "type = const volatile int" +gdb_test "whatis v2_volatile_const_my_int" "type = const volatile my_int" |