blob: 7fe6bf37d7528a3ddd225af2808bff459f615a17 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregor7dfd0fb2009-09-24 23:39:01 +00002template<typename T>
3struct X0 {
4 typedef T* type;
5
6 void f0(T);
7 void f1(type);
8};
9
10template<> void X0<char>::f0(char);
11template<> void X0<char>::f1(type);
Douglas Gregor2fa98002010-02-16 19:28:15 +000012
13namespace PR6161 {
14 template<typename _CharT>
15 class numpunct : public locale::facet // expected-error{{use of undeclared identifier 'locale'}} \
Douglas Gregord65587f2010-11-10 19:44:59 +000016 // expected-error{{expected class name}}
Douglas Gregor2fa98002010-02-16 19:28:15 +000017 {
Jeffrey Yasskinedc28772010-04-07 23:29:58 +000018 static locale::id id; // expected-error{{use of undeclared identifier}}
Douglas Gregor2fa98002010-02-16 19:28:15 +000019 };
Douglas Gregord65587f2010-11-10 19:44:59 +000020 numpunct<char>::~numpunct(); // expected-error{{expected the class name after '~' to name a destructor}}
Douglas Gregor2fa98002010-02-16 19:28:15 +000021}