From: Marek Polacek Date: Fri, 29 Apr 2022 13:33:08 +0000 (-0400) Subject: c++: Add fixed test [PR71424] X-Git-Tag: basepoints/gcc-14~7164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1115a4f1b4afb346341237355186949f8e568a8;p=thirdparty%2Fgcc.git 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 --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 + +void f(std::initializer_list list) +{ +} + +int main() +{ + f({ { 1.0, 2.0 }, { 3.0, 4.0 } }); +}