summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/range-for18.C
blob: 386d73d1817991a017a932566425ed4e38797070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/48994

// { dg-do compile }
// { dg-options "-std=c++0x" }

template <typename T>
struct myvec
{
    T* begin() const;
    T* end() const;
};

void f(const myvec<int>& v)
{
    for (int i : v)
        ;
}
OpenPOWER on IntegriCloud