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, 1 insertions, 2 deletions
diff --git a/clang/test/Sema/init.c b/clang/test/Sema/init.c
index cbf75e1bb1c..7938ec5568d 100644
--- a/clang/test/Sema/init.c
+++ b/clang/test/Sema/init.c
@@ -74,8 +74,7 @@ int sym_fw1a_scr[] = {
};
// PR3001
-struct s1 s2 = { // expected-error{{tentative definition has type 'struct s1' that is never completed}} \
- // expected-note{{forward declaration of 'struct s1'}}
+struct s1 s2 = {
.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