Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for24.C
blob: b4a5b185bd7857f5a7885f27063fdc9d59db3da2 [
file
] [
log
] [
blame
]
// PR c++/56794
// { dg-require-effective-target c++11 }
template
<
int
...
values
>
static
void
Colors
()
{
static
const
int
colors
[]
=
{
values
...
};
for
(
auto
c
:
colors
)
{
}
}
int
main
()
{
Colors
<
0
,
1
,
2
>
();
}