summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/recovery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/recovery.cpp')
-rw-r--r--clang/test/Parser/recovery.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Parser/recovery.cpp b/clang/test/Parser/recovery.cpp
index b5b09484ad9..60b4b5a3369 100644
--- a/clang/test/Parser/recovery.cpp
+++ b/clang/test/Parser/recovery.cpp
@@ -119,3 +119,13 @@ void MissingSemiInFunction() {
struct Inner4 {} // ok, no missing ';' here
Inner5;
}
+
+namespace NS {
+ template<typename T> struct Foo {};
+}
+struct MissingSemiThenTemplate1 {} // expected-error {{expected ';' after struct}}
+NS::Foo<int> missingSemiBeforeFunctionReturningTemplateId1();
+
+using NS::Foo;
+struct MissingSemiThenTemplate2 {} // expected-error {{expected ';' after struct}}
+Foo<int> missingSemiBeforeFunctionReturningTemplateId2();
OpenPOWER on IntegriCloud