Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist85.C
blob: 0b5ce497e491c172bd202fd7a86e6f299bd93f20 [
file
] [
log
] [
blame
]
// PR c++/60848
// { dg-do compile { target c++11 } }
namespace
std
{
struct
initializer_list
{};
// { dg-error "declaration" }
}
void
foo
(
std
::
initializer_list
&);
void
f
()
{
foo
({
1
,
2
});
// { dg-error "invalid initialization" }
}