diff options
author | hjk <qtc-committer@nokia.com> | 2010-06-29 11:10:05 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-06-29 12:02:02 +0200 |
commit | 5adefac634b3ea55271d25ebf31d58b874df2af7 (patch) | |
tree | d12f7de0459b16111dad20b36d465162cdd9e507 /tests | |
parent | dc7894d8e53382012d44c502480ca62605a08017 (diff) | |
download | qt-creator-5adefac634b3ea55271d25ebf31d58b874df2af7.tar.gz |
debuggger: fix dumping of array of string types
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/gdbdebugger/simple/app.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index 6eb30b48bd..db880e4b2a 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -227,11 +227,13 @@ void testArray() d[i][j] = i + j; #endif +#if 1 char c[20]; c[0] = 'a'; c[1] = 'b'; c[2] = 'c'; c[3] = 'd'; +#endif #if 1 QString s[20]; @@ -239,7 +241,17 @@ void testArray() s[1] = "b"; s[2] = "c"; s[3] = "d"; +#endif +#if 1 + QByteArray b[20]; + b[0] = "a"; + b[1] = "b"; + b[2] = "c"; + b[3] = "d"; +#endif + +#if 1 Foo foo[10]; //for (int i = 0; i != sizeof(foo)/sizeof(foo[0]); ++i) { for (int i = 0; i < 5; ++i) { |