From patchwork Fri Dec 6 07:25:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Simon Marchi (Code Review)" X-Patchwork-Id: 36554 Received: (qmail 25085 invoked by alias); 6 Dec 2019 07:25:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 24969 invoked by uid 89); 6 Dec 2019 07:25:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Dec 2019 07:25:22 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id 2E7542095B; Fri, 6 Dec 2019 02:25:21 -0500 (EST) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [IPv6:2620:52:3:1:5054:ff:fe06:16ca]) by mx1.osci.io (Postfix) with ESMTP id 56DAA20A81; Fri, 6 Dec 2019 02:25:19 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id DEBD428174; Fri, 6 Dec 2019 02:25:16 -0500 (EST) X-Gerrit-PatchSet: 2 Date: Fri, 6 Dec 2019 02:25:16 -0500 From: "Sourceware to Gerrit sync (Code Review)" To: Tankut Baris Aktemur , gdb-patches@sourceware.org Cc: Tom Tromey Auto-Submitted: auto-generated X-Gerrit-MessageType: merged Subject: [pushed] gdb/testsuite: do minor clean-up in gdb.cp/rvalue-ref-overload.exp X-Gerrit-Change-Id: Ie760a2856cae3be0eeed5496765a5f1cd102d6b7 X-Gerrit-Change-Number: 618 X-Gerrit-ChangeURL: X-Gerrit-Commit: c7d12402bd6cdedc5f09c2a46285fbcb0f7f0557 In-Reply-To: References: Reply-To: noreply@gnutoolchain-gerrit.osci.io, tankut.baris.aktemur@intel.com, tromey@sourceware.org, gdb-patches@sourceware.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Gerrit/3.0.3-79-g83ff7f88f1 Message-Id: <20191206072516.DEBD428174@gnutoolchain-gerrit.osci.io> Sourceware to Gerrit sync has submitted this change. Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/618 ...................................................................... gdb/testsuite: do minor clean-up in gdb.cp/rvalue-ref-overload.exp Simplify the expected test outputs. This is a minor cleanup; no functional change is intended. gdb/testsuite/ChangeLog: 2019-12-06 Tankut Baris Aktemur * gdb.cp/rvalue-ref-overload.exp: Minor cleanup. Change-Id: Ie760a2856cae3be0eeed5496765a5f1cd102d6b7 --- M gdb/testsuite/ChangeLog M gdb/testsuite/gdb.cp/rvalue-ref-overload.exp 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index adbbd9c..f7447dc 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2019-12-06 Tankut Baris Aktemur + * gdb.cp/rvalue-ref-overload.exp: Minor cleanup. + +2019-12-06 Tankut Baris Aktemur + * gdb.cp/rvalue-ref-overload.cc: Add a case that involves both CV and reference conversion for overload resolution. * gdb.cp/rvalue-ref-overload.exp: Test it. diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp index 693c7ca..e92e901 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp @@ -53,20 +53,16 @@ { 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(arg))" \ - "\\$\[0-9\]+ = 2" \ - "print call overloaded func foo && arg" +gdb_test "print foo_rr_instance1.overload1arg(static_cast(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"