diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-22 18:09:32 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-22 18:09:32 +0000 |
commit | ccf0151b716c3c9580a30521a4ffffeebfd53e83 (patch) | |
tree | c743800ecde61c4dfad74434d2b64a088d052174 /clang/test/SemaTemplate/recovery-crash.cpp | |
parent | d162703b11af075e96d768860147a7d9fdc7a535 (diff) | |
download | bcm5719-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.cpp | 6 |
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 +{{}} +} |