C++ unit test: Adapt to clang 11

Change-Id: I3ea6278147577899ea97032e17f0cd257423586c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-09-21 17:37:44 +02:00
parent 34291fb639
commit 019af2cc9a

View File

@@ -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)