From 66dd03cccc219ceb85e0176878f9b6329e160c27 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 27 May 2011 15:19:46 +0200 Subject: [PATCH] debugger: add manual test for QTCREATORBUG-4997 Change-Id: Ib8dddfecd5fa139193797541e23d115d83c943a5 Reviewed-on: http://codereview.qt.nokia.com/210 Reviewed-by: hjk --- .../gdbdebugger/simple/simple_gdbtest_app.cpp | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp index bcf166bc952..a81eeb51d34 100644 --- a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp +++ b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp @@ -2331,7 +2331,7 @@ void testWCout() j++; } cout.flush(); -}; +} void testWCout0() { @@ -2634,9 +2634,27 @@ void test4019() } +void test4497() +{ + using namespace std; + //cin.get(); // if commented out, the debugger doesn't stop at the breakpoint in the next line. + cout << "Hello, world!" << endl; // breakpoint + + int sum = 0; + for (int i = 1; i <= 10; i++) + sum += i; + + cout << sum << endl; + cout << "Enter a number: "; + int n; + cin >> n; + cout << "You entered " << n << "!" << endl; +} + int main(int argc, char *argv[]) { + //test4497(); test4019(); testEigen(); testKR();