summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qglobal
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/global/qglobal')
-rw-r--r--tests/auto/corelib/global/qglobal/tst_qglobal.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
index 9dc78a14c0..9c6e5ced47 100644
--- a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
+++ b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
@@ -319,8 +319,9 @@ struct Template
struct MyTemplate
{
- Q_STATIC_ASSERT(Template<TypeDef, int>::True);
- Q_STATIC_ASSERT(!!Template<TypeDef, int>::True);
+ static const bool Value = Template<TypeDef, int>::True;
+ Q_STATIC_ASSERT(Value);
+ Q_STATIC_ASSERT(!!Value);
};
void tst_QGlobal::qstaticassert()