From 48dfdc1da5054dcc3d94320eadbbc2210e3d1197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 31 Aug 2016 21:08:17 +0200 Subject: [PATCH] Math: properly test constructing Unit with ZeroInit tag. --- src/Magnum/Math/Test/UnitTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Math/Test/UnitTest.cpp b/src/Magnum/Math/Test/UnitTest.cpp index 8234958df..0bbf1a7ed 100644 --- a/src/Magnum/Math/Test/UnitTest.cpp +++ b/src/Magnum/Math/Test/UnitTest.cpp @@ -79,10 +79,13 @@ void UnitTest::construct() { } void UnitTest::constructDefault() { - constexpr Sec b; + constexpr Sec a; + constexpr Sec b{ZeroInit}; + CORRADE_COMPARE(a, Sec(0.0f)); CORRADE_COMPARE(b, Sec(0.0f)); CORRADE_VERIFY(std::is_nothrow_default_constructible::value); + CORRADE_VERIFY((std::is_nothrow_constructible::value)); } void UnitTest::constructNoInit() {