diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp/rvalue-ref-overload.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/rvalue-ref-overload.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp index 61f81b4..693c7ca 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp @@ -49,6 +49,8 @@ cp_test_ptype_class "foo_rr_instance1" "" "class" "foo" \ { method public "~foo();" } { method public "int overload1arg(foo_lval_ref);" } { method public "int overload1arg(foo_rval_ref);" } + { method public "int overloadConst(const foo &);" } + { method public "int overloadConst(const foo &&);" } } gdb_test "print foo_rr_instance1.overload1arg(arg)" \ @@ -59,6 +61,8 @@ gdb_test "print foo_rr_instance1.overload1arg(static_cast<foo&&>(arg))" \ "\\$\[0-9\]+ = 2" \ "print call overloaded func foo && arg" +gdb_test "print foo_rr_instance1.overloadConst(arg)" "3" + # Test lvalue vs rvalue function overloads gdb_test "print f (i)" "= 1" "lvalue reference overload" |