]> granicus.if.org Git - clang/commitdiff
Add testcase for PR16134, which no longer crashes with ToT.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 22 Jul 2013 18:09:32 +0000 (18:09 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 22 Jul 2013 18:09:32 +0000 (18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186849 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaTemplate/recovery-crash.cpp

index 61e880bf5b03798d99614bda4e09eb9d72bebd5c..b5a0e1fa13f27b7efbdffbbc98923aee3b53338f 100644 (file)
@@ -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 +{{}}
+}