diff options
author | hjk <qtc-committer@nokia.com> | 2011-05-27 15:19:46 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-05-30 12:57:15 +0200 |
commit | 66dd03cccc219ceb85e0176878f9b6329e160c27 (patch) | |
tree | 8d275ed7fbd3854169ed38a21b59c0ed904ec6d4 /tests | |
parent | f89710819868431fc5c5726d120603c2d413ab2a (diff) |
debugger: add manual test for QTCREATORBUG-4997
Change-Id: Ib8dddfecd5fa139193797541e23d115d83c943a5
Reviewed-on: http://codereview.qt.nokia.com/210
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
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(); |