From: Marek Polacek Date: Mon, 27 Jun 2022 18:52:58 +0000 (-0400) Subject: c++: Add fixed test [PR89197] X-Git-Tag: basepoints/gcc-14~5904 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=508231d54405ac9f120cf30c28cd6eb10ceded30;p=thirdparty%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 00000000000..662a5a3ce3f --- /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}; }