[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / instantiate-elab-type-specifier.cpp
blob5db9b56c21a47c255af581cba9bafb42adb7a128
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 // PR5681
5 template <class T> struct Base {
6 struct foo {};
7 int foo;
8 };
10 template <class T> struct Derived : Base<T> {
11 typedef struct Base<T>::foo type;
14 template struct Derived<int>;