OSDN Git Service

PR c++/48994
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / range-for18.C
1 // PR c++/48994
2
3 // { dg-do compile }
4 // { dg-options "-std=c++0x" }
5
6 template <typename T>
7 struct myvec
8 {
9     T* begin() const;
10     T* end() const;
11 };
12
13 void f(const myvec<int>& v)
14 {
15     for (int i : v)
16         ;
17 }