public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r10-9916] libstdc++: Adjust expected errors in tests when compiled as C++20 Date: Mon, 14 Jun 2021 18:52:14 +0000 (GMT) [thread overview] Message-ID: <20210614185214.B5A403959E66@sourceware.org> (raw) https://gcc.gnu.org/g:1bb1b6a5e7010217aa3cdde147b9a6ab0160060f commit r10-9916-g1bb1b6a5e7010217aa3cdde147b9a6ab0160060f Author: Jonathan Wakely <jwakely@redhat.com> Date: Mon May 10 15:10:45 2021 +0100 libstdc++: Adjust expected errors in tests when compiled as C++20 libstdc++-v3/ChangeLog: * testsuite/20_util/scoped_allocator/69293_neg.cc: Add dg-error for additional errors in C++20. * testsuite/20_util/uses_allocator/69293_neg.cc: Likewise. * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise. (cherry picked from commit 23972128c83e62011b583f06b32c8501c096b7d8) Diff: --- libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc | 1 + libstdc++-v3/testsuite/20_util/uses_allocator/69293_neg.cc | 3 ++- libstdc++-v3/testsuite/20_util/uses_allocator/cons_neg.cc | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc index 6f3cd0a2521..975862b3365 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc @@ -47,6 +47,7 @@ test01() auto p = sa.allocate(1); sa.construct(p); // this is required to be ill-formed // { dg-error "failed: .* uses_allocator is true" "" { target *-*-* } 0 } + // { dg-error "too many initializers for 'X'" "" { target c++2a } 0 } } // Needed because of PR c++/92193 diff --git a/libstdc++-v3/testsuite/20_util/uses_allocator/69293_neg.cc b/libstdc++-v3/testsuite/20_util/uses_allocator/69293_neg.cc index 423ecc4d90e..6626e5a9713 100644 --- a/libstdc++-v3/testsuite/20_util/uses_allocator/69293_neg.cc +++ b/libstdc++-v3/testsuite/20_util/uses_allocator/69293_neg.cc @@ -45,5 +45,6 @@ test01() alloc_type a; std::tuple<X> t(std::allocator_arg, a); // this is required to be ill-formed // { dg-error "failed: .* uses_allocator is true" "" { target *-*-* } 0 } - // { dg-error "no matching function for call" "" { target c++2a } 0 } + // { dg-error "too many initializers for 'X'" "" { target c++2a } 0 } + // { dg-prune-output "in 'constexpr' expansion" } } diff --git a/libstdc++-v3/testsuite/20_util/uses_allocator/cons_neg.cc b/libstdc++-v3/testsuite/20_util/uses_allocator/cons_neg.cc index c3ff05aa72a..966e579cc99 100644 --- a/libstdc++-v3/testsuite/20_util/uses_allocator/cons_neg.cc +++ b/libstdc++-v3/testsuite/20_util/uses_allocator/cons_neg.cc @@ -45,3 +45,4 @@ void test01() } // { dg-error "failed: .* uses_allocator is true" "" { target *-*-* } 0 } // { dg-error "no matching function for call" "" { target c++2a } 0 } +// { dg-prune-output "in 'constexpr' expansion" }
reply other threads:[~2021-06-14 18:52 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210614185214.B5A403959E66@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).