From b50f62da43e0d7dc2b2855730e78a4ccf5048249 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 16 Jul 2024 13:39:03 -0600 Subject: [PATCH] Test constexpr construction of aggregates --- test/Graphics/Glyph.test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/Graphics/Glyph.test.cpp b/test/Graphics/Glyph.test.cpp index 53cad96d7..9d707a4b4 100644 --- a/test/Graphics/Glyph.test.cpp +++ b/test/Graphics/Glyph.test.cpp @@ -17,11 +17,11 @@ TEST_CASE("[Graphics] sf::Glyph") SECTION("Construction") { - const sf::Glyph glyph; - CHECK(glyph.advance == 0.f); - CHECK(glyph.lsbDelta == 0); - CHECK(glyph.rsbDelta == 0); - CHECK(glyph.bounds == sf::FloatRect()); - CHECK(glyph.textureRect == sf::IntRect()); + constexpr sf::Glyph glyph; + STATIC_CHECK(glyph.advance == 0.f); + STATIC_CHECK(glyph.lsbDelta == 0); + STATIC_CHECK(glyph.rsbDelta == 0); + STATIC_CHECK(glyph.bounds == sf::FloatRect()); + STATIC_CHECK(glyph.textureRect == sf::IntRect()); } }