diff options
Diffstat (limited to 'tests/auto/corelib/io/qdebug/tst_qdebug.cpp')
-rw-r--r-- | tests/auto/corelib/io/qdebug/tst_qdebug.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qdebug/tst_qdebug.cpp b/tests/auto/corelib/io/qdebug/tst_qdebug.cpp index ece9be642a..72412aa44d 100644 --- a/tests/auto/corelib/io/qdebug/tst_qdebug.cpp +++ b/tests/auto/corelib/io/qdebug/tst_qdebug.cpp @@ -35,6 +35,12 @@ #include <QtConcurrentRun> #include <QFutureSynchronizer> +static_assert(QTypeTraits::has_ostream_v<QDebug, int>); +static_assert(QTypeTraits::has_ostream_v<QDebug, QList<int>>); +struct NonStreamable {}; +static_assert(!QTypeTraits::has_ostream_v<QDebug, NonStreamable>); +static_assert(!QTypeTraits::has_ostream_v<QDebug, QList<NonStreamable>>); + class tst_QDebug: public QObject { Q_OBJECT |