2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-06-24 07:11:28 +08:00
|
|
|
|
|
|
|
template<typename T> typedef T X; // expected-error{{typedef cannot be a template}}
|
2010-03-03 01:53:14 +08:00
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
enum t0 { A = T::x }; // expected-error{{enumeration cannot be a template}} \
|
2010-04-09 05:33:23 +08:00
|
|
|
// expected-warning{{declaration does not declare anything}}
|
2010-03-03 01:53:14 +08:00
|
|
|
|
2010-05-04 01:48:54 +08:00
|
|
|
enum e0 {};
|
|
|
|
template<int x> enum e0 f0(int a=x) {}
|