blob: 6974351a9c03d88a90e0a2131401bc07c1296983 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
// PR debug/61033
// { dg-do compile }
// { dg-options "-g -O2" }
# 0 "" 3
struct A {
A(int) : ch() {}
unicode() {}
int ch;
};
class QChar {
public:
QChar(A ch) : ucs(ch.unicode()) {}
int ucs;
};
class B {
public:
int isShared_count;
isShared() { return isShared_count; }
};
struct C {
unsigned short *data() {
void *__trans_tmp_1;
__trans_tmp_1 = reinterpret_cast<char *>(0) + offset;
return static_cast<unsigned short *>(__trans_tmp_1);
}
B ref;
int size;
int alloc;
int offset;
};
class D {
public:
D(char *) : m_data() {} * m_data;
};
class F {
public:
F(int, QChar);
F(D);
operator+=(QChar) {
if (d->ref.isShared() || d->alloc)
reallocData();
d->data()[d->size++] = 0;
d->data()[0] = '\0';
}
C *d;
reallocData();
};
struct G {
struct H {
int begin;
};
H d;
size() { return d.begin; }
};
class I {
G p;
public:
~I();
length() { return p.size(); }
};
class J;
class K {
public:
J toNodeListProperty() const;
};
class L {
F toQml(const K &property) const;
toQml() const;
};
class J {
public:
I toModelNodeList();
};
F::F(D) {}
F L::toQml(const K &property) const {
I nodes = property.toNodeListProperty().toModelNodeList();
F result("");
F(0, A(' '));
for (int i = 0; i < nodes.length(); ++i) {
if (i)
result += A(',');
result += A('\n');
toQml();
}
}
|