diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index a40642dea03..eec1ef5833d 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -27,6 +27,11 @@ ** **************************************************************************/ +//#include + + +//template class B; B foo() {} + #include #include #include @@ -69,6 +74,18 @@ #include #endif +template class Vector +{ +public: + explicit Vector(int size) : m_size(size), m_data(new T[size]) {} + ~Vector() { delete [] m_data; } + //... +private: + int m_size; + T *m_data; +}; + + uint qHash(const QMap &) { @@ -1347,8 +1364,22 @@ void testEndlessRecursion() testEndlessRecursion(); } +QString fooxx() +{ + return "bababa"; +} + +int testReference() +{ + QString a = "hello"; + const QString &b = fooxx(); + QString c = "world"; + return a.size() + b.size() + c.size(); +} + int main(int argc, char *argv[]) { + testReference(); //testEndlessRecursion(); testQStack(); testUninitialized();