Debian Codegraph @

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

raw
1 // PR c++/106230
2 // { dg-do compile { target c++11 } }
3
4 struct A {
5 A();
6 operator int();
7 };
8 template <int N> struct array {
9 A elts[N];
10 A *begin();
11 A *end();
12 };
13 void fn() {
14 for (int i : array<4>{})
15 ;
16 }