aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-09-21 17:37:44 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-09-23 09:13:47 +0000
commit019af2cc9ae171927082baece48ac73b6760a771 (patch)
tree599a5f571038f99ed24409413d92609f0619a863 /tests
parent34291fb639fe6f729d92ec7f0d5e2b56147d7873 (diff)
C++ unit test: Adapt to clang 11
Change-Id: I3ea6278147577899ea97032e17f0cd257423586c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/unittest/clangtooltipinfo-test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/unittest/clangtooltipinfo-test.cpp b/tests/unit/unittest/clangtooltipinfo-test.cpp
index 0c9db57dc34..bb1fbb8a441 100644
--- a/tests/unit/unittest/clangtooltipinfo-test.cpp
+++ b/tests/unit/unittest/clangtooltipinfo-test.cpp
@@ -397,11 +397,10 @@ TEST_F(ToolTipInfo, SizeForUnion)
TEST_F(ToolTipInfo, constexprValue)
{
- // CLANG-UPGRADE-CHECK: Adapt the values below
ASSERT_THAT(tooltip(204, 12).value.toInt(), 4);
- ASSERT_THAT(tooltip(204, 27).value.toInt(), 4); // 3 in clang 11
+ ASSERT_THAT(tooltip(204, 27).value.toInt(), CINDEX_VERSION_MINOR > 59 ? 3 : 4);
ASSERT_THAT(tooltip(204, 30).value.toInt(), 4);
- ASSERT_THAT(tooltip(204, 32).value.toInt(), 4); // 1 in clang 11
+ ASSERT_THAT(tooltip(204, 32).value.toInt(), CINDEX_VERSION_MINOR > 59 ? 1 : 4);
}
TEST_F(ToolTipInfo, Namespace)