blob: 2cc435e495d2a403364ad3c646541e217289f681 [file] [log] [blame]
Argyrios Kyrtzidise36bca62011-04-22 17:45:37 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3// Don't crash.
4
5template<typename aT>
6struct basic_string{
7 a; // expected-error {{requires a type specifier}}
8 basic_string(aT*);
9};
10
John McCalld46a1122011-04-27 06:46:31 +000011struct runtime_error{ // expected-note {{candidate constructor}}
12 runtime_error( // expected-note {{candidate constructor}}
Argyrios Kyrtzidise36bca62011-04-22 17:45:37 +000013basic_string<char> struct{ // expected-error {{cannot combine with previous 'type-name' declaration specifier}}
14a(){ // expected-error {{requires a type specifier}}
John McCalld46a1122011-04-27 06:46:31 +000015 runtime_error(0); // expected-error {{no matching conversion}}
Argyrios Kyrtzidise36bca62011-04-22 17:45:37 +000016}
17}
18);
19};