☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for24.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/range-for24.C
code
plain
raw
1
// PR c++/56794
2
// { dg-require-effective-target c++11 }
3
4
template<int... values>
5
static void Colors()
6
{
7
static const int colors[] = { values... };
8
9
for(auto c: colors) { }
10
}
11
12
int main()
13
{
14
Colors<0,1,2> ();
15
}