public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r9-10160] c++: fix testcases
@ 2022-05-13 17:40 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2022-05-13 17:40 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:967f950b74bcafd2954a2414aa3d931c381c0887

commit r9-10160-g967f950b74bcafd2954a2414aa3d931c381c0887
Author: Jason Merrill <jason@redhat.com>
Date:   Thu May 12 08:13:02 2022 -0400

    c++: fix testcases
    
    Only the first dg-error in constexpr-array23.C needs to be xfailed on the 9
    branch.
    
    lambda-pack-init6.C depends on the fix for PR94546; rather than backport
    that as well, let's remove the test.
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/cpp0x/constexpr-array23.C: Remove xfail.
            * g++.dg/cpp2a/lambda-pack-init6.C: Removed.

Diff:
---
 gcc/testsuite/g++.dg/cpp0x/constexpr-array23.C |  2 +-
 gcc/testsuite/g++.dg/cpp2a/lambda-pack-init6.C | 27 --------------------------
 2 files changed, 1 insertion(+), 28 deletions(-)

diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-array23.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-array23.C
index e94695efa2a..47079dc38fc 100644
--- a/gcc/testsuite/g++.dg/cpp0x/constexpr-array23.C
+++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-array23.C
@@ -11,7 +11,7 @@ struct A
 struct B
 {				// This should really be target { ! c++2a }
   typedef A W[4];		// { dg-error "paren" "" { xfail *-*-* } .+1 }
-  constexpr B () : w ({ A::z, A::z, A::z, A::z }) {} // { dg-error "constant" "" { xfail *-*-* } }
+  constexpr B () : w ({ A::z, A::z, A::z, A::z }) {} // { dg-error "constant" }
   W w;
 };
 
diff --git a/gcc/testsuite/g++.dg/cpp2a/lambda-pack-init6.C b/gcc/testsuite/g++.dg/cpp2a/lambda-pack-init6.C
deleted file mode 100644
index 137e4e9fab3..00000000000
--- a/gcc/testsuite/g++.dg/cpp2a/lambda-pack-init6.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// PR c++/97938
-// { dg-do compile { target c++2a } }
-
-template <typename... Args>
-int sink(Args&&... args) { return 2; }
-
-auto fwd1(const auto&&... ts1) {
-  return
-    [...ts1 = ts1] {
-      return sink(ts1...);
-    }();
-}
-
-template <typename T1>
-auto fwd2(const T1& t1) {
-  return
-    [] (auto&&... ts1) {
-      return
-	[...ts1 = ts1] {
-	  return sink(ts1...);
-	}();
-    }();
-}
-
-int main() {
-  return fwd1() + fwd2(1);
-}


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

only message in thread, other threads:[~2022-05-13 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 17:40 [gcc r9-10160] c++: fix testcases Jason Merrill

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).