7 enum E
{ red
, green
, blue
, yellow
};
8 struct S
{ int x
, y
; S
* s
; };
11 struct emptyDerived
: S
{ };
12 struct emptyNested
: emptyBase
{ };
13 struct emptyVBase
{ virtual ~emptyVBase(){} };
14 struct emptyVDerived
: S
{ virtual ~emptyVDerived(){} };
15 struct emptyVNested
: emptyVBase
{ };
29 typedef void (*PtrFunc
)(E
*, char);
36 int operator()(const QString
& x
, int& y
) const;
37 operator const char*() { return 0; }
55 void Banong() { g(); }
57 void g() { Banong(); }
59 void Aanong() { B::g(); }
61 void g() { Aanong(); }
64 void f(E e
[3], char c
)
76 memset(buffer
, 1, 300);
77 for (int i
= 0; i
< sizeof(buffer
); i
+=15) buffer
[i
] = '\02';
91 void strtest(const char* t
)
97 std::cout
<< s2
<< std::endl
;
106 int main(int argc
, char* argv
[])
109 if (*argv
[1] == 's') {
111 } else if (*argv
[1] == 'a') {
112 // let debugger attach
118 char a
[6] = { 'a', 'B', '\'', '\"' };
119 char a1
[1] = { '1' };
120 E e
[3] = { red
, green
, blue
};
121 E e1
[1] = { yellow
};
124 void (*pf
[2])(E
*, char) = {f
};
126 double d
[1] = { -1.234e123
};
134 s
= "Hi, there!\r\n\t\"\'\\";
136 const QString
& strref
= s
;
139 s
= "asbcxxxxxxxxxxxxxxxxxxxxxxxxxxx";
141 s
+= "iiiiiiiiiiiiiiiiiiiiiiiiiiiiiii";
145 s
= "xxxxxxxxxxxxxxxxxxxxxxxxxxx";
163 std::cout
<< l
<< std::endl
;
187 int Dl::operator()(const QString
& x
, int& y
) const
189 std::cerr
<< "ha! I know!" << std::endl
;
193 Dl::operator PtrFunc
*()