diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp/casts.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/casts.exp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/casts.exp b/gdb/testsuite/gdb.cp/casts.exp index cda870f..5d0a524 100644 --- a/gdb/testsuite/gdb.cp/casts.exp +++ b/gdb/testsuite/gdb.cp/casts.exp @@ -174,6 +174,12 @@ gdb_test "print dynamic_cast<Gamma *> (add)" \ " = \\(Gamma \\*\\) $nonzero_hex" \ "dynamic_cast to sibling" +gdb_test "print (unsigned long long) &gd == gd_value" " = true" +gdb_test "print (unsigned long long) (LeftRight *) (Right *) &gd == gd_value" \ + " = true" +gdb_test "print (unsigned long long) (LeftRight *) (Right *) r_value == gd_value" \ + " = true" + if {[prepare_for_testing "failed to prepare" ${testfile}03 $srcfile2 \ {debug c++ additional_flags=-std=c++03}]} { return -1 |