repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for18.C
blob
be436380e6816c1104cd6053f16c1f4ad15ff21b
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
}