aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/init.c')
-rw-r--r--test/Sema/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Sema/init.c b/test/Sema/init.c
index a078a2a96b..c08500834f 100644
--- a/test/Sema/init.c
+++ b/test/Sema/init.c
@@ -16,6 +16,7 @@ int *h = &x;
int test() {
int a[10];
int b[10] = a; // expected-error {{initialization with "{...}" expected}}
+int +; // expected-error {{expected identifier or '('}} expected-error {{declarator requires an identifier}} expected-error {{parse error}}
}