]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaTemplate/template-decl-fail.cpp
Update clang to 97654.
[FreeBSD/FreeBSD.git] / test / SemaTemplate / template-decl-fail.cpp
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 template<typename T> typedef T X; // expected-error{{typedef cannot be a template}}
4
5 template<typename T>
6 enum t0 { A = T::x }; // expected-error{{enumeration cannot be a template}} \
7                       // expected-error{{declaration does not declare anything}}
8