xref: /aosp_15_r20/external/clang/test/CXX/temp/temp.decls/p3.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
2*67e74705SXin Li 
3*67e74705SXin Li template<typename T> using A = int;
4*67e74705SXin Li template<typename T> using A<T*> = char; // expected-error {{partial specialization of alias templates is not permitted}}
5*67e74705SXin Li template<> using A<char> = char; // expected-error {{explicit specialization of alias templates is not permitted}}
6*67e74705SXin Li template using A<char> = char; // expected-error {{explicit instantiation of alias templates is not permitted}}
7*67e74705SXin Li using A<char> = char; // expected-error {{name defined in alias declaration must be an identifier}}
8