☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for18.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/range-for18.C
code
plain
raw
1
// PR c++/48994
2
3
// { dg-do compile { target c++11 } }
4
5
template <typename T>
6
struct myvec
7
{
8
T* begin() const;
9
T* end() const;
10
};
11
12
void f(const myvec<int>& v)
13
{
14
for (int i : v)
15
;
16
}