From: Richard Smith Date: Mon, 22 Jul 2013 18:09:32 +0000 (+0000) Subject: Add testcase for PR16134, which no longer crashes with ToT. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10ed9819769e66f52cc6e22a74c2d96e601d7d26;p=clang Add testcase for PR16134, which no longer crashes with ToT. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186849 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/recovery-crash.cpp b/test/SemaTemplate/recovery-crash.cpp index 61e880bf5b..b5a0e1fa13 100644 --- a/test/SemaTemplate/recovery-crash.cpp +++ b/test/SemaTemplate/recovery-crash.cpp @@ -16,3 +16,9 @@ void Test() { B b(0); // expected-note{{in instantiation of function template}} } + +// Don't crash here. +namespace PR16134 { + template struct S // expected-error {{expected ';'}} + template <> static S::f() // expected-error +{{}} +}