From: Marek Polacek Date: Mon, 27 Jun 2022 18:52:58 +0000 (-0400) Subject: c++: Add fixed test [PR89197] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=508231d54405ac9f120cf30c28cd6eb10ceded30;p=platform%2Fupstream%2Fgcc.git c++: Add fixed test [PR89197] Fixed since bug 97899 was fixed. PR c++/89197 gcc/testsuite/ChangeLog: * g++.dg/cpp0x/initlist130.C: New test. --- diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist130.C b/gcc/testsuite/g++.dg/cpp0x/initlist130.C new file mode 100644 index 0000000..662a5a3 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/initlist130.C @@ -0,0 +1,5 @@ +// PR c++/89197 +// { dg-options "-Wno-c++11-extensions" } +// This used to ICE with std=c++03, therefore we run it in C++03 too. + +template void foo(int i) { const int c = int{i}; }