☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for33.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/range-for33.C
code
plain
raw
1
// PR c++/77284
2
// { dg-do compile { target c++11 } }
3
4
#include <initializer_list>
5
6
struct A
7
{
8
~A () {}
9
};
10
11
void foo (A & v)
12
{
13
for (A a : { v }) {};
14
}