[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / PR9460.cpp
blob0dd844677053bff9520d01d9b5bb4a3a908805e0
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // Don't crash.
5 template<typename aT>
6 struct basic_string{
7 a; // expected-error {{requires a type specifier}}
8 basic_string(aT*);
9 };
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 {{requires a type specifier}}
15 runtime_error(0);