+2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+
+ * gdb.cp/rvalue-ref-overload.exp: Minor cleanup.
+
2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* gdb.cp/rvalue-ref-overload.cc: Add a case that involves both
{ method public "int overloadConst(const foo &&);" }
}
-gdb_test "print foo_rr_instance1.overload1arg(arg)" \
- "\\$\[0-9\]+ = 1" \
- "print call overloaded func foo & arg"
+gdb_test "print foo_rr_instance1.overload1arg(arg)" "1"
-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.overload1arg(static_cast<foo&&>(arg))" "2"
gdb_test "print foo_rr_instance1.overloadConst(arg)" "3"
# Test lvalue vs rvalue function overloads
-gdb_test "print f (i)" "= 1" "lvalue reference overload"
+gdb_test "print f (i)" "1" "lvalue reference overload"
-gdb_test "print f (ci)" "= 2" "lvalue reference to const overload"
+gdb_test "print f (ci)" "2" "lvalue reference to const overload"
setup_kfail "c++/15372" "*-*-*"
-gdb_test "print f (3)" "= 3" "rvalue reference overload"
+gdb_test "print f (3)" "3" "rvalue reference overload"