summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/recovery-crash.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-07-22 18:09:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-07-22 18:09:32 +0000
commitccf0151b716c3c9580a30521a4ffffeebfd53e83 (patch)
treec743800ecde61c4dfad74434d2b64a088d052174 /clang/test/SemaTemplate/recovery-crash.cpp
parentd162703b11af075e96d768860147a7d9fdc7a535 (diff)
downloadbcm5719-llvm-ccf0151b716c3c9580a30521a4ffffeebfd53e83.tar.gz
bcm5719-llvm-ccf0151b716c3c9580a30521a4ffffeebfd53e83.zip
Add testcase for PR16134, which no longer crashes with ToT.
llvm-svn: 186849
Diffstat (limited to 'clang/test/SemaTemplate/recovery-crash.cpp')
-rw-r--r--clang/test/SemaTemplate/recovery-crash.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/recovery-crash.cpp b/clang/test/SemaTemplate/recovery-crash.cpp
index 61e880bf5b0..b5a0e1fa13f 100644
--- a/clang/test/SemaTemplate/recovery-crash.cpp
+++ b/clang/test/SemaTemplate/recovery-crash.cpp
@@ -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 +{{}}
+}
OpenPOWER on IntegriCloud