From ff998900b163e96c52a4fefc71736ed34626ed86 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sat, 6 May 2017 05:28:13 +0200 Subject: struct-init: Fix zero initialization with multi-level designators See the added testcase. When one used designators like .a.x to initialize sub-members of members, and didn't then initialize all of them the required zero-initialization of the other sub-members wasn't done. The fix also enables tiny code cleanups. --- tests/tests2/90_struct-init.expect | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/tests2/90_struct-init.expect') diff --git a/tests/tests2/90_struct-init.expect b/tests/tests2/90_struct-init.expect index adda76d..e366121 100644 --- a/tests/tests2/90_struct-init.expect +++ b/tests/tests2/90_struct-init.expect @@ -38,3 +38,6 @@ flow: 9 8 7 6 0 0 0 0 0 0 0 0 0 0 0 0 6 5 4 3 0 0 0 0 0 0 0 0 0 0 0 0 one two three +sea_fill0: okay +sea_fill1: okay +sea_fill2: okay -- cgit v1.3.1