summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clangd/XRefsTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/unittests/clangd/XRefsTests.cpp')
-rw-r--r--clang-tools-extra/unittests/clangd/XRefsTests.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang-tools-extra/unittests/clangd/XRefsTests.cpp b/clang-tools-extra/unittests/clangd/XRefsTests.cpp
index df795b1c552..1f0f808bb61 100644
--- a/clang-tools-extra/unittests/clangd/XRefsTests.cpp
+++ b/clang-tools-extra/unittests/clangd/XRefsTests.cpp
@@ -1337,6 +1337,15 @@ TEST(FindReferences, WithinAST) {
}
)cpp",
+ R"cpp(// Constructor
+ struct Foo {
+ [[F^oo]](int);
+ };
+ void foo() {
+ Foo f = [[Foo]](42);
+ }
+ )cpp",
+
R"cpp(// Typedef
typedef int [[Foo]];
int main() {
OpenPOWER on IntegriCloud