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 | 10ed9819769e66f52cc6e22a74c2d96e601d7d26 (patch) | |
tree | 69bfa8fb0faa63ff29fd975a49ecbec7db6df137 /test/SemaTemplate/recovery-crash.cpp | |
parent | e0883603389c5f380354474e0d6d1d63827f0c30 (diff) | |
download | clang-10ed9819769e66f52cc6e22a74c2d96e601d7d26.tar.gz clang-10ed9819769e66f52cc6e22a74c2d96e601d7d26.tar.bz2 clang-10ed9819769e66f52cc6e22a74c2d96e601d7d26.tar.xz |
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
Diffstat (limited to 'test/SemaTemplate/recovery-crash.cpp')
-rw-r--r-- | test/SemaTemplate/recovery-crash.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<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 +{{}} +} |