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> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| externaltests.cpp | ||
| externaltests.h | ||
| externaltests.pri | ||
| forwarddeclared.cpp | ||
| forwarddeclared.h | ||
| nontracked.cpp | ||
| nontracked.h | ||
| qsharedpointer.pro | ||
| tst_qsharedpointer.cpp | ||
| wrapper.cpp | ||
| wrapper.h | ||