public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-43] c++: Add fixed test [PR71424]
@ 2022-04-29 13:34 Marek Polacek
  0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2022-04-29 13:34 UTC (permalink / raw)
  To: gcc-cvs

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 } });
+}


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

only message in thread, other threads:[~2022-04-29 13:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 13:34 [gcc r13-43] c++: Add fixed test [PR71424] Marek Polacek

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