Skip to content

Commit

Permalink
Math: MSVC 2015, you ICEd.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed May 11, 2021
1 parent d03cc34 commit dd3ce93
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Magnum/Math/Test/Matrix4Test.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit dd3ce93

Please sign in to comment.