Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist57.C
blob: 6f662ef03b6679e46b0ec651d4b9b4497166f6af [
file
] [
log
] [
blame
]
// PR c++/50054
// { dg-do compile { target c++11 } }
void
g
(
const
int
&
(
a
)[
1
]
)
{}
// { dg-error "21:declaration of .a. as array of references" }
int
main
()
{
g
(
{
1
,
2
}
);
// { dg-error "initializer list" }
}