summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2016-03-18 10:04:15 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2016-03-18 09:27:00 +0000
commit04b75569f36eec14662505a08bf8c1d565cb10fe (patch)
tree586d7b8155aa867dc0944804fc8c86b8298321da /config.tests
parent92c979c6652d55c30ab9118d45db74d8da96fc3b (diff)
Make C++11 test less restrictive
We don't use unique_ptr or make_unique. In fact make_unique is C++14. Task-number: QTBUG-51655 Change-Id: I8c9b0a5b11f6cf38f5bce092275f24987035be07 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/language/main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/config.tests/language/main.cpp b/config.tests/language/main.cpp
index dc57aa8..1d6732b 100644
--- a/config.tests/language/main.cpp
+++ b/config.tests/language/main.cpp
@@ -97,11 +97,10 @@ int total(int a, int i) { return a + i; }
int main(int /*argc*/, char** /*argv*/)
{
- // unique_ptr and nullptr
- std::unique_ptr<Test> t = nullptr;
-
- // make_unique and delegating ctor
- t = std::make_unique<Test>(155);
+ // nullptr
+ Test *t = nullptr;
+ Test stackT(155);
+ t = &stackT;
// variadics
t->setValues(1, 2, 3, 4, 5);