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:
parent
5f6b649403
commit
508231d544
1 changed files with 5 additions and 0 deletions
5
gcc/testsuite/g++.dg/cpp0x/initlist130.C
Normal file
5
gcc/testsuite/g++.dg/cpp0x/initlist130.C
Normal 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}; }
|
Loading…
Add table
Reference in a new issue