summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr42714.C
blob: b1b2d856efc2faf2632ea8f86d454afbb11548e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
struct QVectorData {
    static QVectorData shared_null;
};
template <typename T> class QVector {
    union {
        QVectorData *d;
    };
public:
    inline QVector() : d(&QVectorData::shared_null) { }
    inline QVector(const QVector<T> &v) : d(v.d) { }
};
class QXmlStreamAttribute { };
class QXmlStreamAttributes : public QVector<QXmlStreamAttribute> { };
class __attribute__ ((visibility("default"))) Smoke {
public:
    union StackItem;
    typedef StackItem* Stack;
    typedef short Index;
};
class SmokeBinding { };
namespace __smokeqt {
    class x_QXmlStreamAttributes : public QXmlStreamAttributes {
        SmokeBinding* _binding;
    public:
        static void x_11(Smoke::Stack x) {
            x_QXmlStreamAttributes* xret = new x_QXmlStreamAttributes();
        }
        explicit x_QXmlStreamAttributes() : QXmlStreamAttributes() { }
    };
    void xcall_QXmlStreamAttributes(Smoke::Index xi, void *obj,
                                    Smoke::Stack args)
      {
        switch(xi) {
            case 11: x_QXmlStreamAttributes::x_11(args);
        }
      }
}