blob: eca0f58831a901b8cc294a70052f84abd52006dc [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregore542c862009-06-23 23:11:28 +00002
3template<typename T> typedef T X; // expected-error{{typedef cannot be a template}}
Douglas Gregor9b9edd62010-03-02 17:53:14 +00004
5template<typename T>
6enum t0 { A = T::x }; // expected-error{{enumeration cannot be a template}} \
7 // expected-error{{declaration does not declare anything}}
8