Fix PR2017 and silence some bogus errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49068 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/decl-invalid.c b/test/Sema/decl-invalid.c
index d241adc..281e8a8 100644
--- a/test/Sema/decl-invalid.c
+++ b/test/Sema/decl-invalid.c
@@ -1,3 +1,11 @@
// RUN: clang %s -fsyntax-only -verify
typedef union <anonymous> __mbstate_t; // expected-error: {{expected identifier or}}
+
+
+// PR2017
+void x();
+int a() {
+ int r[x()]; // expected-error: {{size of array has non-integer type 'void'}}
+}
+