2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-09-25 07:39:01 +08:00
|
|
|
template<typename T>
|
|
|
|
struct X0 {
|
|
|
|
typedef T* type;
|
|
|
|
|
|
|
|
void f0(T);
|
|
|
|
void f1(type);
|
|
|
|
};
|
|
|
|
|
|
|
|
template<> void X0<char>::f0(char);
|
|
|
|
template<> void X0<char>::f1(type);
|
2010-02-17 03:28:15 +08:00
|
|
|
|
|
|
|
namespace PR6161 {
|
|
|
|
template<typename _CharT>
|
|
|
|
class numpunct : public locale::facet // expected-error{{use of undeclared identifier 'locale'}} \
|
2010-11-11 03:44:59 +08:00
|
|
|
// expected-error{{expected class name}}
|
2010-02-17 03:28:15 +08:00
|
|
|
{
|
2010-04-08 07:29:58 +08:00
|
|
|
static locale::id id; // expected-error{{use of undeclared identifier}}
|
2010-02-17 03:28:15 +08:00
|
|
|
};
|
2010-11-11 03:44:59 +08:00
|
|
|
numpunct<char>::~numpunct(); // expected-error{{expected the class name after '~' to name a destructor}}
|
2010-02-17 03:28:15 +08:00
|
|
|
}
|