summaryrefslogtreecommitdiffstats
path: root/test/Sema/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/init.c')
-rw-r--r--test/Sema/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/init.c b/test/Sema/init.c
index c271248..b9867cf 100644
--- a/test/Sema/init.c
+++ b/test/Sema/init.c
@@ -75,7 +75,8 @@ int sym_fw1a_scr[] = {
};
// PR3001
-struct s1 s2 = {
+struct s1 s2 = { // expected-error {{variable has incomplete type 'struct s1'}} \
+ // expected-note {{forward declaration of 'struct s1'}}
.a = sizeof(struct s3), // expected-error {{invalid application of 'sizeof'}} \
// expected-note{{forward declaration of 'struct s3'}}
.b = bogus // expected-error {{use of undeclared identifier 'bogus'}}
OpenPOWER on IntegriCloud