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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Contributed by Dodji Seketeli 
2
// Origin PR c++/40866
3
// { dg-options "-std=gnu++98" }
4
// { dg-do compile }
5
 
6
template  class QForeachContainer {
7
public:
8
    QForeachContainer();
9
    int brk;
10
    typename T::const_iterator i;
11
};
12
 
13
template  class QList {
14
public:
15
    class const_iterator {
16
    public:
17
        const_iterator(const const_iterator &o);
18
        const_iterator &operator++();
19
    };
20
};
21
 
22
class QAction;
23
class QWidget {
24
public:
25
    QList actions() const;
26
};
27
class myDialog : public QWidget {
28
    myDialog();
29
};
30
 
31
myDialog::myDialog()
32
{
33
    QForeachContainer<__typeof__(actions())> _container_;
34
    ({++_container_.brk; ++_container_.i;});
35
}
36
 

powered by: WebSVN 2.1.0

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