public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] testsuite: Fix up PR108525 test [PR108525]
@ 2023-02-08 13:00 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2023-02-08 13:00 UTC (permalink / raw)
  To: gcc-patches

Hi!

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.

Tested on x86_64-linux, committed to trunk as obvious.

2023-02-08  Jakub Jelinek  <jakub@redhat.com>

	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.

--- gcc/testsuite/g++.dg/cpp23/static-operator-call5.C.jj	2023-01-25 15:13:23.653643155 +0100
+++ gcc/testsuite/g++.dg/cpp23/static-operator-call5.C	2023-02-08 13:52:17.273674484 +0100
@@ -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 } }
 
--- gcc/testsuite/g++.dg/cpp23/static-operator-call6.C.jj	2023-02-08 13:51:53.856022995 +0100
+++ gcc/testsuite/g++.dg/cpp23/static-operator-call6.C	2023-02-08 13:52:06.831829883 +0100
@@ -0,0 +1,5 @@
+// PR c++/108525
+// { dg-do compile { target c++23 } }
+
+auto b = [](...) static { return 1; };
+auto foo () { return b (); }

	Jakub


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-08 13:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08 13:00 [committed] testsuite: Fix up PR108525 test [PR108525] Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).