From: Benjamin Kramer Date: Sun, 24 Feb 2013 15:51:32 +0000 (+0000) Subject: Add the testcase from PR13573, this used to crash. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=960876cd88a9aba546345dec49a1cf9a4f248356;p=clang Add the testcase from PR13573, this used to crash. The error is a bit strange tbh, but better than crashing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175996 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/cxx0x-defaulted-functions.cpp b/test/SemaCXX/cxx0x-defaulted-functions.cpp index 3ad3a447f8..3ba03c4eee 100644 --- a/test/SemaCXX/cxx0x-defaulted-functions.cpp +++ b/test/SemaCXX/cxx0x-defaulted-functions.cpp @@ -170,3 +170,8 @@ namespace PR14577 { template Outer::Inner2::~Inner2() = default; // expected-error {{nested name specifier 'Outer::Inner2::' 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 // expected-error {{templates must have C++ linkage}} + void PR13573(const _Tp&) = delete; // expected-error {{only functions can have deleted definitions}} +}