Debian Codegraph @

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

raw
1 // PR c++/77545
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wno-pedantic" }
4
5 template < typename T > struct A
6 {
7 A ();
8 ~A ();
9 T t;
10 };
11
12 void f (A < int > a)
13 {
14 for (auto x : (A<int>[]) { a })
15 ;
16 }