OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [pr45908.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/45908
2
// Testcase by Jonathan Wakely 
3
 
4
// { dg-do compile }
5
// { dg-options "-std=c++0x" }
6
 
7
struct vector {
8
    struct iterator { };
9
    struct const_iterator { };
10
    iterator begin();
11
    const_iterator begin() const;
12
};
13
 
14
class block {
15
    vector v;
16
    auto end() const -> decltype(v.begin())
17
    { return v.begin(); }
18
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.