Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-initlist11a.C
blob: 2597c3836ed18b1ac439f31fd51369a60bea74ed [
file
] [
log
] [
blame
]
// PR c++/89144
// { dg-do link { target c++11 } }
#include
<initializer_list>
template
<class>
void
b
()
{
constexpr
std
::
initializer_list
<int>
l
{
42
};
// { dg-error "" }
}
int
main
()
{
b
<int>
();
}