From fb56c37b854f63d9d08e6fa632c73c2e38ecc76b Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 19 Aug 2010 14:53:40 +0200 Subject: [PATCH] debugger: manual test, make testStruct() not run into the gcc RVO bug. --- tests/manual/gdbdebugger/simple/app.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index 9636a4839df..66db56a3240 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -1362,7 +1362,9 @@ Foo testStruct() f.doit(); f.doit(); f.doit(); - return f; + Foo f1 = f; + f1.doit(); + return f1; } class Thread : public QThread