Debian Codegraph @

clang/test/SemaCXX/PR9460.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 // Don't crash.
4
5 template<typename aT>
6 struct basic_string{
7 a; // expected-error {{a type specifier is required}}
8 basic_string(aT*);
9 };
10
11 struct runtime_error{
12 runtime_error(
13 basic_string<char> struct{ // expected-error {{cannot combine with previous 'type-name' declaration specifier}}
14 a(){ // expected-error {{a type specifier is required}}
15 runtime_error(0);
16 }
17 }
18 );
19 };