blob: be8dc6eb3048a8aac31ebf4e879f2b629314a85e [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
11struct runtime_error{
12runtime_error(
13basic_string<char> struct{ // expected-error {{cannot combine with previous 'type-name' declaration specifier}}
14a(){ // expected-error {{requires a type specifier}}
15runtime_error(0);
16}
17}
18);
19};