qt5base-lts/tests/auto/corelib/tools/qsharedpointer
Allan Sandfeld Jensen cf7d990a48 Fix reference to a dead temporary
NoDefaultConstructorRef1 was taking a reference of the input, which
meant in the first test it would get a reference to the temporary
created by the 1 literal. A temporary that would be out of scope by
the time we check its value.

Instead add a test with unique_ptr to test we can pass movable
temporaries.

Change-Id: I6b02377dfe30c82b6e71bfb3353a81ad81558ed3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-05-22 11:22:40 +02:00
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
externaltests.cpp Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
externaltests.h Updated license headers 2016-01-21 18:55:18 +00:00
externaltests.pri remove pointless conditional defines 2015-11-16 14:40:20 +00:00
forwarddeclared.cpp Updated license headers 2016-01-21 18:55:18 +00:00
forwarddeclared.h Updated license headers 2016-01-21 18:55:18 +00:00
nontracked.cpp Updated license headers 2016-01-21 18:55:18 +00:00
nontracked.h Updated license headers 2016-01-21 18:55:18 +00:00
qsharedpointer.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
tst_qsharedpointer.cpp Fix reference to a dead temporary 2019-05-22 11:22:40 +02:00
wrapper.cpp Updated license headers 2016-01-21 18:55:18 +00:00
wrapper.h Updated license headers 2016-01-21 18:55:18 +00:00