summaryrefslogtreecommitdiffstats
path: root/test/Sema/tentative-decls.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/tentative-decls.c')
-rw-r--r--test/Sema/tentative-decls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/tentative-decls.c b/test/Sema/tentative-decls.c
index e3c893c..c94af11 100644
--- a/test/Sema/tentative-decls.c
+++ b/test/Sema/tentative-decls.c
@@ -2,7 +2,7 @@
// PR3310
struct a x1; // expected-note 2{{forward declaration of 'struct a'}}
-static struct a x2; // expected-error{{variable has incomplete type 'struct a'}}
+static struct a x2; // expected-warning{{tentative definition of variable with internal linkage has incomplete non-array type 'struct a'}}
struct a x3[10]; // expected-error{{array has incomplete element type 'struct a'}}
struct a {int x;};
static struct a x2_okay;
OpenPOWER on IntegriCloud