aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2023-02-08 13:57:00 +0100
committerJakub Jelinek <jakub@redhat.com>2023-02-08 13:57:00 +0100
commita58a4a57f9a4445f93b495f776f45e1118777e88 (patch)
tree98861881e657bd79604d1490f848f6784e3a82cd
parentaa12d1b17c4557f6770f2c05d44525e105372ae6 (diff)
downloadgcc-a58a4a57f9a4445f93b495f776f45e1118777e88.zip
gcc-a58a4a57f9a4445f93b495f776f45e1118777e88.tar.gz
gcc-a58a4a57f9a4445f93b495f776f45e1118777e88.tar.bz2
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 <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.
-rw-r--r--gcc/testsuite/g++.dg/cpp23/static-operator-call5.C5
-rw-r--r--gcc/testsuite/g++.dg/cpp23/static-operator-call6.C5
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 ecbb843..ae022d0 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 0000000..c3e4a84
--- /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 (); }