☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for34.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/range-for34.C
code
plain
raw
1
// PR c++/79566
2
// { dg-do compile { target c++11 } }
3
4
struct X {
5
struct Y { };
6
7
Y* begin();
8
Y* end();
9
};
10
11
void f()
12
{
13
X x;
14
for (struct X::Y& y : x)
15
;
16
}