[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / PR25708.cpp
blob6a214fc6b43bc1d285c453b2b5cfb793983b98d0
1 // RUN: %clang_cc1 -std=c++11 -verify %s
2 // expected-no-diagnostics
4 struct FooAccessor
6 template <typename T>
7 using Foo = typename T::Foo;
8 };
10 class Type
12 friend struct FooAccessor;
14 using Foo = int;
17 int main()
19 FooAccessor::Foo<Type> t;