qt6-bb10/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
externaltests.cpp Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
externaltests.h
externaltests.pri
forwarddeclared.cpp
forwarddeclared.h
nontracked.cpp
nontracked.h
qsharedpointer.pro
tst_qsharedpointer.cpp Fix reference to a dead temporary 2019-05-22 11:22:40 +02:00
wrapper.cpp
wrapper.h