summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/init.c')
-rw-r--r--clang/test/Sema/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/init.c b/clang/test/Sema/init.c
index 1f84e41eabf..6f592b80e60 100644
--- a/clang/test/Sema/init.c
+++ b/clang/test/Sema/init.c
@@ -74,7 +74,8 @@ int sym_fw1a_scr[] = {
};
// PR3001
-struct s1 s2 = {
+struct s1 s2 = { // expected-error{{tentative definition has type 'struct s1' that is never completed}} \
+ // 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