Add the testcase from PR13573, this used to crash.

The error is a bit strange tbh, but better than crashing.

llvm-svn: 175996
This commit is contained in:
Benjamin Kramer 2013-02-24 15:51:32 +00:00
parent ee40b9a2d4
commit e08de37902
1 changed files with 5 additions and 0 deletions

View File

@ -170,3 +170,8 @@ namespace PR14577 {
template<typename T>
Outer<T>::Inner2<T>::~Inner2() = default; // expected-error {{nested name specifier 'Outer<T>::Inner2<T>::' for declaration does not refer into a class, class template or class template partial specialization}} expected-error {{only special member functions may be defaulted}}
}
extern "C" {
template<typename _Tp> // expected-error {{templates must have C++ linkage}}
void PR13573(const _Tp&) = delete; // expected-error {{only functions can have deleted definitions}}
}