OSDN Git Service

* g++.dg/inherit/thunk7.C: New test.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / init / cleanup1.C
1 // PR c++/13033
2
3 // We failed to treat the for increment expression as a full-expression,
4 // which broke gimplification.
5
6 struct QDomNode {
7   virtual ~QDomNode();
8   QDomNode nextSibling() const;
9   bool isNull() const;
10 };
11
12 void processNode(QDomNode n)
13 {
14   for (; !n.isNull(); n = n.nextSibling())
15     ;
16 }