summaryrefslogtreecommitdiff
path: root/test/Parser/declarators.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/declarators.c')
-rw-r--r--test/Parser/declarators.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Parser/declarators.c b/test/Parser/declarators.c
index 31712af26c74..fb69fa9c1d05 100644
--- a/test/Parser/declarators.c
+++ b/test/Parser/declarators.c
@@ -83,3 +83,14 @@ void test12() {
// rdar://7608537
struct test13 { int a; } (test13x);
+
+// <rdar://problem/8044088>
+struct X<foo::int> { }; // expected-error{{expected identifier or '('}}
+
+
+// PR7617 - error recovery on missing ;.
+
+void test14() // expected-error {{expected ';' after top level declarator}}
+
+void test14a();
+void *test14b = (void*)test14a; // Make sure test14a didn't get skipped.