libstdc++: [_Hashtable] Fix some implementation inconsistencies
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / range-for38.C
blob39845b937c13db49a14b548779ceeaeaaccc123b
1 // PR c++/106230
2 // { dg-do compile { target c++11 } }
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();
13 void fn() {
14   for (int i : array<4>{})
15     ;