aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-template-decl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-30 21:46:58 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-30 21:46:58 +0000
commit2cc782f7932f1069d9fa8bb5c518165802aad68d (patch)
treeac7383a8951dc16693c79ca17d2f18945eafff75 /test/Parser/cxx-template-decl.cpp
parente8c01bdb56549adcecd71ce39160eea54b2c51c8 (diff)
Improve diagnostics when parsing something like
template<> struct foo<int> { ... }; where "foo" does not refer to a template. Fixes PR3844. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-template-decl.cpp')
-rw-r--r--test/Parser/cxx-template-decl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Parser/cxx-template-decl.cpp b/test/Parser/cxx-template-decl.cpp
index 67f52b6a67..2b2d3de504 100644
--- a/test/Parser/cxx-template-decl.cpp
+++ b/test/Parser/cxx-template-decl.cpp
@@ -92,3 +92,7 @@ void f2() {
int x;
A< typeof(x>1) > a;
}
+
+
+// PR3844
+template <> struct S<int> { }; // expected-error{{explicit specialization of non-template struct 'S'}}