summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qxp/function_ref/tst_qxp_function_ref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/global/qxp/function_ref/tst_qxp_function_ref.cpp')
-rw-r--r--tests/auto/corelib/global/qxp/function_ref/tst_qxp_function_ref.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/corelib/global/qxp/function_ref/tst_qxp_function_ref.cpp b/tests/auto/corelib/global/qxp/function_ref/tst_qxp_function_ref.cpp
index 6264e6a5ae..ee50a311ef 100644
--- a/tests/auto/corelib/global/qxp/function_ref/tst_qxp_function_ref.cpp
+++ b/tests/auto/corelib/global/qxp/function_ref/tst_qxp_function_ref.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtCore/qxpfunctional.h>
@@ -249,6 +249,8 @@ void tst_qxp_function_ref::ctad()
qxp::function_ref f2 = &fun; \
static_assert(std::is_same_v<decltype(f2), \
qxp::function_ref<sig>>); \
+ static_assert(std::is_trivially_copyable_v<decltype(f)>); \
+ static_assert(std::is_trivially_copyable_v<decltype(f2)>); \
} while (false)
CHECK(i_f_i_nx, int (int) noexcept);