commit | 10ed9819769e66f52cc6e22a74c2d96e601d7d26 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Mon Jul 22 18:09:32 2013 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Mon Jul 22 18:09:32 2013 +0000 |
tree | 69bfa8fb0faa63ff29fd975a49ecbec7db6df137 | |
parent | e0883603389c5f380354474e0d6d1d63827f0c30 [diff] |
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
diff --git a/test/SemaTemplate/recovery-crash.cpp b/test/SemaTemplate/recovery-crash.cpp index 61e880b..b5a0e1f 100644 --- a/test/SemaTemplate/recovery-crash.cpp +++ b/test/SemaTemplate/recovery-crash.cpp
@@ -16,3 +16,9 @@ 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 +{{}} +}