Commit 965be37b authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: add manual test for map<string, list<string> >

Change-Id: I191fdc6ce9f8fbe7e83258b592a0030c91b872dd
Reviewed-on: http://codereview.qt.nokia.com/527

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent f74e1675
......@@ -2742,8 +2742,31 @@ namespace qc42170 {
} // namespace qc42170
// http://www.qtcentre.org/threads/41700-How-to-watch-STL-containers-iterators-during-debugging
namespace qc41700 {
void test()
{
using namespace std;
typedef map<string, list<string> > map_t;
map_t m;
m["one"].push_back("a");
m["one"].push_back("b");
m["one"].push_back("c");
m["two"].push_back("1");
m["two"].push_back("2");
m["two"].push_back("3");
map_t::const_iterator it = m.begin();
++it;
++it;
++it;
}
} // namespace qc41700
int main(int argc, char *argv[])
{
qc41700::test();
qc42170::test();
test842();
test842();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment