summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp')
-rw-r--r--clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp b/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
index 0f688656b76..2df0f1c9a57 100644
--- a/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
+++ b/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
@@ -625,6 +625,13 @@ $InactiveCode[[]] int Inactive3;
$InactiveCode[[]] #else
int $Variable[[Active2]];
#endif
+ )cpp",
+ // Argument to 'sizeof...'
+ R"cpp(
+ template <typename... $TemplateParameter[[Elements]]>
+ struct $Class[[TupleSize]] {
+ static const int $StaticField[[size]] = sizeof...($TemplateParameter[[Elements]]);
+ };
)cpp"};
for (const auto &TestCase : TestCases) {
checkHighlightings(TestCase);
OpenPOWER on IntegriCloud