From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 5A33B3858024; Tue, 6 Sep 2022 11:12:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A33B3858024 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662462736; bh=8hwIvT+EQmtOwCPB1FMNYa43CFNcetH/2Atf/M3VIzA=; h=From:To:Subject:Date:From; b=R0CjjZiXLagX1hsxEWwDD8b6458YwDQaqT0WK5wsqjAYtRafZn8274iD2QdZioLWF 8vLQ0Iy6qaccsEoAEombBWXcFMm3eAz8o7vRRqPvUJ+Ntwe+5iglVeNqT6UytYiUo7 qt64X+I984/tswdkLnshtEs5iQhfyMExvlj2rRMo= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-2496] libstdc++: Fix pretty printer tests of tuple indexes X-Act-Checkin: gcc X-Git-Author: Philipp Fent X-Git-Refname: refs/heads/master X-Git-Oldrev: 26ea6ca1fc76752875e74edd628bc3066c642a29 X-Git-Newrev: 190c644c06369766aa2537851ddbf83b1231b65b Message-Id: <20220906111216.5A33B3858024@sourceware.org> Date: Tue, 6 Sep 2022 11:12:16 +0000 (GMT) List-Id: https://gcc.gnu.org/g:190c644c06369766aa2537851ddbf83b1231b65b commit r13-2496-g190c644c06369766aa2537851ddbf83b1231b65b Author: Philipp Fent Date: Sun Sep 4 20:47:34 2022 +0200 libstdc++: Fix pretty printer tests of tuple indexes Signed-off-by: Philipp Fent libstdc++-v3/ChangeLog: * testsuite/libstdc++-prettyprinters/48362.cc: Fix expected tuple indices. * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise. Diff: --- libstdc++-v3/testsuite/libstdc++-prettyprinters/48362.cc | 2 +- libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/testsuite/libstdc++-prettyprinters/48362.cc b/libstdc++-v3/testsuite/libstdc++-prettyprinters/48362.cc index cc91803e247..af335d0d3c7 100644 --- a/libstdc++-v3/testsuite/libstdc++-prettyprinters/48362.cc +++ b/libstdc++-v3/testsuite/libstdc++-prettyprinters/48362.cc @@ -29,7 +29,7 @@ main() // { dg-final { note-test t1 {empty std::tuple} } } std::tuple> t2{ "Johnny", 5, {} }; -// { dg-final { regexp-test t2 {std::tuple containing = {\[1\] = "Johnny", \[2\] = 5, \[3\] = empty std::tuple}} } } +// { dg-final { regexp-test t2 {std::tuple containing = {\[0\] = "Johnny", \[1\] = 5, \[2\] = empty std::tuple}} } } std::cout << "\n"; return 0; // Mark SPOT diff --git a/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc b/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc index f97640a0189..bc5978ee69d 100644 --- a/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc +++ b/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc @@ -166,9 +166,9 @@ main() // { dg-final { note-test runiq_ptr {std::unique_ptr = {get() = 0x0}} } } ExTuple tpl(6,7); -// { dg-final { note-test tpl {std::tuple containing = {[1] = 6, [2] = 7}} } } +// { dg-final { note-test tpl {std::tuple containing = {[0] = 6, [1] = 7}} } } ExTuple &rtpl = tpl; -// { dg-final { note-test rtpl {std::tuple containing = {[1] = 6, [2] = 7}} } } +// { dg-final { note-test rtpl {std::tuple containing = {[0] = 6, [1] = 7}} } } std::error_code e0; // { dg-final { note-test e0 {std::error_code = { }} } }