[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / incomplete-struct-decl.cpp
blobbc3bd6b2eae2f07ba3b80574d02f9ce01386ebdb
1 // RUN: %clang_cc1 -x c++ -fsyntax-only -verify=cxx,expected %s
3 template <class a> using __impl_of = a; // expected-note {{'__impl_of' declared here}} \
4 expected-note {{template is declared here}}
5 struct { // expected-error {{anonymous structs and classes must be class members}} \
6 expected-note {{to match this '{'}}
7 __impl_; // expected-error {{no template named '__impl_'; did you mean '__impl_of'?}} \
8 expected-error {{cannot specify deduction guide for alias template '__impl_of'}} \
9 expected-error {{expected ';' after struct}}
10 // expected-error {{expected '}'}}