From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1734) id 7B2F53888C70; Fri, 29 Apr 2022 13:34:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B2F53888C70 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Marek Polacek To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-43] c++: Add fixed test [PR71424] X-Act-Checkin: gcc X-Git-Author: Marek Polacek X-Git-Refname: refs/heads/trunk X-Git-Oldrev: a0a2554d7c86c126de85fcbd5bd7e16dbb5a2693 X-Git-Newrev: e1115a4f1b4afb346341237355186949f8e568a8 Message-Id: <20220429133424.7B2F53888C70@sourceware.org> Date: Fri, 29 Apr 2022 13:34:24 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2022 13:34:24 -0000 https://gcc.gnu.org/g:e1115a4f1b4afb346341237355186949f8e568a8 commit r13-43-ge1115a4f1b4afb346341237355186949f8e568a8 Author: Marek Polacek 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 + +void f(std::initializer_list list) +{ +} + +int main() +{ + f({ { 1.0, 2.0 }, { 3.0, 4.0 } }); +}