1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 template<typename
,typename
=int,typename
=int>struct basic_string
;
7 typedef basic_string
<char> string
;
11 template<typename aT
,typename
,typename oc
>
15 basic_string(const aT
*,const oc
&a
=int());
19 int _S_construct(int);
21 _S_construct(); // expected-error {{a type specifier is required}}
24 template<typename _CharT
,typename _Traits
,typename _Alloc
>
25 basic_string
<_CharT
,_Traits
,_Alloc
>::basic_string(const _CharT
* c
,const _Alloc
&)
29 struct runtime_error
{runtime_error(string
);};
31 struct system_error
:runtime_error
{ // expected-note {{to match}}
32 system_error():time_error("" // expected-error 3 {{expected}} expected-note {{to match}}