diff --git a/clang/unittests/Index/IndexTests.cpp b/clang/unittests/Index/IndexTests.cpp --- a/clang/unittests/Index/IndexTests.cpp +++ b/clang/unittests/Index/IndexTests.cpp @@ -428,6 +428,19 @@ WrittenAt(Position(3, 15))))); } +TEST(IndexTest, UnconstrainedAuto) { + std::string Code = R"cpp( + template + class Client { + template + void foo() { + } + }; + )cpp"; + auto Index = std::make_shared(); + tooling::runToolOnCode(std::make_unique(Index), Code); + EXPECT_THAT(Index->Symbols, Contains(AllOf(QName("Client::foo")))); +} } // namespace } // namespace index } // namespace clang