From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2153) id 03EEF3858D39; Wed, 8 Feb 2023 12:59:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03EEF3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675861152; bh=bcvdvxIXzqGO75UV3c96rvqx8qSc0XjXoxbDMCycSj8=; h=From:To:Subject:Date:From; b=BC3TDfYB2VFO12evQzAPjntTmKDWdHlcbwO4Bt0GLhKfFjkRIhsXg0Xc6U30WvXHd 3KkkxhOrrzPC1LPVTg6qupzFBMQujphr0RXczipSESZFQ+5ohkqSIaXpTiP+yHU76t BwcDbY6nCEtjYYuPPIy9fbnZ9gYjlSbDyL3szYKc= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jakub Jelinek To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5737] testsuite: Fix up PR108525 test [PR108525] X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/master X-Git-Oldrev: aa12d1b17c4557f6770f2c05d44525e105372ae6 X-Git-Newrev: a58a4a57f9a4445f93b495f776f45e1118777e88 Message-Id: <20230208125912.03EEF3858D39@sourceware.org> Date: Wed, 8 Feb 2023 12:59:11 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a58a4a57f9a4445f93b495f776f45e1118777e88 commit r13-5737-ga58a4a57f9a4445f93b495f776f45e1118777e88 Author: Jakub Jelinek Date: Wed Feb 8 13:57:00 2023 +0100 testsuite: Fix up PR108525 test [PR108525] Seems when committing the PR108525 fix I've missed that a test with the same name had been added a few hours before for PR108526. This patch separates the PR108525 test into a new file. 2023-02-08 Jakub Jelinek PR c++/108525 * g++.dg/cpp23/static-operator-call5.C: Move PR108525 testcase incorrectly applied into PR108526 testcase ... * g++.dg/cpp23/static-operator-call6.C: ... here. New test. Diff: --- gcc/testsuite/g++.dg/cpp23/static-operator-call5.C | 5 ----- gcc/testsuite/g++.dg/cpp23/static-operator-call6.C | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/g++.dg/cpp23/static-operator-call5.C b/gcc/testsuite/g++.dg/cpp23/static-operator-call5.C index ecbb843ef3c..ae022d0b971 100644 --- a/gcc/testsuite/g++.dg/cpp23/static-operator-call5.C +++ b/gcc/testsuite/g++.dg/cpp23/static-operator-call5.C @@ -1,8 +1,3 @@ -// PR c++/108525 -// { dg-do compile { target c++23 } } - -auto b = [](...) static { return 1; }; -auto foo () { return b (); } // PR c++/108526 // { dg-do compile { target c++23 } } diff --git a/gcc/testsuite/g++.dg/cpp23/static-operator-call6.C b/gcc/testsuite/g++.dg/cpp23/static-operator-call6.C new file mode 100644 index 00000000000..c3e4a846a10 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp23/static-operator-call6.C @@ -0,0 +1,5 @@ +// PR c++/108525 +// { dg-do compile { target c++23 } } + +auto b = [](...) static { return 1; }; +auto foo () { return b (); }