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}; }