☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for31.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/range-for31.C
code
plain
raw
1
// PR c++/71604
2
// { dg-do compile { target c++11 } }
3
4
void foo ()
5
{
6
int a[2] = { 1, 2 };
7
for (struct S { S (int) {} } S : a) // { dg-error "types may not be defined" }
8
;
9
}