Browse Source

Math: MSVC 2015, you ICEd.

pull/527/head
Vladimír Vondruš 5 years ago
parent
commit
dd3ce93888
  1. 10
      src/Magnum/Math/Test/Matrix4Test.cpp

10
src/Magnum/Math/Test/Matrix4Test.cpp

@ -312,13 +312,19 @@ void Matrix4Test::constructFromDifferentSize() {
{0.0f, 0.0f, 0.0f, 0.0f}};
constexpr Matrix4 identity1{a, 0.5f};
constexpr Matrix4 identity2{IdentityInit, a, 0.5f};
#ifndef CORRADE_MSVC2015_COMPATIBILITY /* It ICEs, haha */
constexpr
#endif
Matrix4 identity2{IdentityInit, a, 0.5f};
CORRADE_COMPARE(identity1, expectedIdentity);
CORRADE_COMPARE(identity2, expectedIdentity);
CORRADE_COMPARE((Matrix4{a, 0.5f}), expectedIdentity);
CORRADE_COMPARE((Matrix4{IdentityInit, a, 0.5f}), expectedIdentity);
constexpr Matrix4 zero{ZeroInit, a};
#ifndef CORRADE_MSVC2015_COMPATIBILITY /* It ICEs, haha */
constexpr
#endif
Matrix4 zero{ZeroInit, a};
CORRADE_COMPARE(zero, expectedZero);
CORRADE_COMPARE((Matrix4{ZeroInit, a}), expectedZero);
}

Loading…
Cancel
Save