]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up PR108525 test [PR108525]
authorJakub Jelinek <jakub@redhat.com>
Wed, 8 Feb 2023 12:57:00 +0000 (13:57 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 8 Feb 2023 12:57:00 +0000 (13:57 +0100)
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.

gcc/testsuite/g++.dg/cpp23/static-operator-call5.C
gcc/testsuite/g++.dg/cpp23/static-operator-call6.C [new file with mode: 0644]

index ecbb843ef3c558c09c21c218a6c28ab20b79cf29..ae022d0b9711ae70da5c90640fb0491d0844b912 100644 (file)
@@ -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 (file)
index 0000000..c3e4a84
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/108525
+// { dg-do compile { target c++23 } }
+
+auto b = [](...) static { return 1; };
+auto foo () { return b (); }