Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist104.C
blob: 99487a70607044eb822c874fb6294a922375edc6 [
file
] [
log
] [
blame
]
// PR c++/85977, Incorrect handling of array reference size deduction
// { dg-do compile { target c++11 } }
template
<
typename
T
,
int
N
>
void
fn
(
const
T
(&)[
N
])
{
static_assert
(
N
==
3
,
"fn"
);
}
void
bar
()
{
fn
({
1
,
2
,
3
});
}