blob: eca0f58831a901b8cc294a70052f84abd52006dc [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregorb52fabb2009-06-23 23:11:28 +00002
3template<typename T> typedef T X; // expected-error{{typedef cannot be a template}}
Douglas Gregordc70c3a2010-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