summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/tentative-decls.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/tentative-decls.c')
-rw-r--r--clang/test/Sema/tentative-decls.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/tentative-decls.c b/clang/test/Sema/tentative-decls.c
index 12ce181e0f1..3c1ab0e6587 100644
--- a/clang/test/Sema/tentative-decls.c
+++ b/clang/test/Sema/tentative-decls.c
@@ -1,5 +1,12 @@
// RUN: clang %s -fsyntax-only -verify
+// PR3310
+struct a x1; // expected-note 2{{forward declaration of 'struct a'}}
+static struct a x2; // expected-error{{variable has incomplete type 'struct a'}}
+struct a x3[10]; // expected-error{{array has incomplete element type 'struct a'}}
+struct a {int x;};
+struct b x4; // FIXME: error because 'struct b' is never defined
+
const int a [1] = {1};
extern const int a[];
@@ -43,3 +50,4 @@ void func2(void)
extern double *p;
extern double *p;
}
+
OpenPOWER on IntegriCloud