r186849 - Add testcase for PR16134, which no longer crashes with ToT.

Richard Smith richard-llvm at metafoo.co.uk
Mon Jul 22 11:09:32 PDT 2013


Author: rsmith
Date: Mon Jul 22 13:09:32 2013
New Revision: 186849

URL: http://llvm.org/viewvc/llvm-project?rev=186849&view=rev
Log:
Add testcase for PR16134, which no longer crashes with ToT.

Modified:
    cfe/trunk/test/SemaTemplate/recovery-crash.cpp

Modified: cfe/trunk/test/SemaTemplate/recovery-crash.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/recovery-crash.cpp?rev=186849&r1=186848&r2=186849&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/recovery-crash.cpp (original)
+++ cfe/trunk/test/SemaTemplate/recovery-crash.cpp Mon Jul 22 13:09:32 2013
@@ -16,3 +16,9 @@ void Test() {
   B<int> b(0);  // expected-note{{in instantiation of function template}}
 }
 
+
+// Don't crash here.
+namespace PR16134 {
+  template <class P> struct S // expected-error {{expected ';'}}
+  template <> static S<Q>::f() // expected-error +{{}}
+}





More information about the cfe-commits mailing list