aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/90_struct-init.expect
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-05-06 05:28:13 +0200
committerMichael Matz <matz@suse.de>2017-05-06 05:28:13 +0200
commitff998900b163e96c52a4fefc71736ed34626ed86 (patch)
tree919db5e9a3647e1131ec7bdb4f9e3993f7e7e11a /tests/tests2/90_struct-init.expect
parent075723456073bf7319805ce964a3f8a036eb7d27 (diff)
downloadtinycc-ff998900b163e96c52a4fefc71736ed34626ed86.tar.gz
tinycc-ff998900b163e96c52a4fefc71736ed34626ed86.tar.bz2
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.
Diffstat (limited to 'tests/tests2/90_struct-init.expect')
-rw-r--r--tests/tests2/90_struct-init.expect3
1 files changed, 3 insertions, 0 deletions
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