brintos

brintos / llvm-project-archived public Read only

0
0
Text · 844 B · bc3bd6b Raw
11 lines · cpp
1// RUN: %clang_cc1 -x c++ -fsyntax-only -verify=cxx,expected %s2 3template <class a> using __impl_of = a; // expected-note {{'__impl_of' declared here}} \4                                           expected-note {{template is declared here}}5struct {                                // 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