From 34304e3100883187ca658b8c983af21549496b43 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 17 Nov 2020 13:24:46 +0100 Subject: Get rid of Q_COMPILER_CONSTEXPR checks Is required now. Change-Id: I62e95929d1649ea1390392230b619bd56d2a0349 Reviewed-by: Lars Knoll --- tests/auto/corelib/global/qflags/tst_qflags.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tests/auto/corelib/global/qflags') diff --git a/tests/auto/corelib/global/qflags/tst_qflags.cpp b/tests/auto/corelib/global/qflags/tst_qflags.cpp index 521e134767..86a233f984 100644 --- a/tests/auto/corelib/global/qflags/tst_qflags.cpp +++ b/tests/auto/corelib/global/qflags/tst_qflags.cpp @@ -105,7 +105,6 @@ constexpr Qt::MouseButtons testRelaxedConstExpr() void tst_QFlags::constExpr() { -#ifdef Q_COMPILER_CONSTEXPR Qt::MouseButtons btn = Qt::LeftButton | Qt::RightButton; switch (btn) { case Qt::LeftButton: QVERIFY(false); break; @@ -125,10 +124,7 @@ void tst_QFlags::constExpr() QVERIFY(!verifyConstExpr(~Qt::MouseButtons(Qt::LeftButton))); -#if defined(__cpp_constexpr) && __cpp_constexpr-0 >= 201304 QVERIFY(verifyConstExpr(Qt::MiddleButton)); -#endif -#endif } void tst_QFlags::signedness() -- cgit v1.2.3