public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Marek Polacek <mpolacek@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-43] c++: Add fixed test [PR71424] Date: Fri, 29 Apr 2022 13:34:24 +0000 (GMT) [thread overview] Message-ID: <20220429133424.7B2F53888C70@sourceware.org> (raw) https://gcc.gnu.org/g:e1115a4f1b4afb346341237355186949f8e568a8 commit r13-43-ge1115a4f1b4afb346341237355186949f8e568a8 Author: Marek Polacek <polacek@redhat.com> Date: Fri Apr 29 09:33:08 2022 -0400 c++: Add fixed test [PR71424] This was fixed by r12-6329-g4f6bc28fc7dd86. PR c++/71424 gcc/testsuite/ChangeLog: * g++.dg/cpp0x/initlist-array15.C: New test. Diff: --- gcc/testsuite/g++.dg/cpp0x/initlist-array15.C | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist-array15.C b/gcc/testsuite/g++.dg/cpp0x/initlist-array15.C new file mode 100644 index 00000000000..67e30d8d93e --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/initlist-array15.C @@ -0,0 +1,13 @@ +// PR c++/71424 +// { dg-do compile { target c++11 } } + +#include <initializer_list> + +void f(std::initializer_list<double[2]> list) +{ +} + +int main() +{ + f({ { 1.0, 2.0 }, { 3.0, 4.0 } }); +}
reply other threads:[~2022-04-29 13:34 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=20220429133424.7B2F53888C70@sourceware.org \ --to=mpolacek@gcc.gnu.org \ --cc=gcc-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).