summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/class-template-id.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/class-template-id.cpp')
-rw-r--r--test/SemaTemplate/class-template-id.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaTemplate/class-template-id.cpp b/test/SemaTemplate/class-template-id.cpp
index e74a6f8..98ccbe7 100644
--- a/test/SemaTemplate/class-template-id.cpp
+++ b/test/SemaTemplate/class-template-id.cpp
@@ -36,3 +36,8 @@ namespace N {
N::C<int> c1;
typedef N::C<float> c2;
+
+// PR5655
+template<typename T> struct Foo { }; // expected-note{{template is declared here}}
+
+void f(void) { Foo bar; } // expected-error{{without a template argument list}}
OpenPOWER on IntegriCloud