c++: Add fixed test [PR89197]

Fixed since bug 97899 was fixed.

	PR c++/89197

gcc/testsuite/ChangeLog:

	* g++.dg/cpp0x/initlist130.C: New test.
This commit is contained in:
Marek Polacek 2022-06-27 14:52:58 -04:00
parent 5f6b649403
commit 508231d544

View file

@ -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 <int> void foo(int i) { const int c = int{i}; }