Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/range-for34.C

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 }