summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/unittests/SelectionTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/unittests/SelectionTests.cpp')
-rw-r--r--clang-tools-extra/clangd/unittests/SelectionTests.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/unittests/SelectionTests.cpp b/clang-tools-extra/clangd/unittests/SelectionTests.cpp
index 9e1a90b55e3..581309b1dcc 100644
--- a/clang-tools-extra/clangd/unittests/SelectionTests.cpp
+++ b/clang-tools-extra/clangd/unittests/SelectionTests.cpp
@@ -323,6 +323,12 @@ TEST(SelectionTest, CommonAncestor) {
Foo x = [[^12_ud]];
)cpp",
"UserDefinedLiteral"},
+ {
+ R"cpp(
+ int a;
+ decltype([[^a]] + a) b;
+ )cpp",
+ "DeclRefExpr"},
};
for (const Case &C : Cases) {
Annotations Test(C.Code);
OpenPOWER on IntegriCloud