xref: /llvm-project/clang/test/Sema/incomplete-struct-decl.cpp (revision cd132dcbeb0fc79fd657bd5e0a8e9244c3fb5da6)
1 // RUN: %clang_cc1 -x c++ -fsyntax-only -verify=cxx,expected %s
2 
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 '}'}}
11