struct-init: Implement initializing subaggregates
commited7d54651d2ef33dd6f644f23ba2fa64706e84db
authorMichael Matz <matz@suse.de>
Sun, 31 Jul 2016 03:43:17 +0000 (31 05:43 +0200)
committerMichael Matz <matz@suse.de>
Thu, 15 Dec 2016 16:47:09 +0000 (15 17:47 +0100)
tree6e9f026ed352aa684be2b6554be698cb2112a4c8
parent968bccdd2aae0c737c3e4c7ba0fc7e8900d1055a
struct-init: Implement initializing subaggregates

E.g. "struct { struct S s; int a;} = { others, 42 };"
if 'others' is also a 'struct S'.  Also when the value is a
compound literal.  See added testcases.
tccgen.c
tests/tests2/86-struct-init.c [new file with mode: 0644]
tests/tests2/86-struct-init.expect [new file with mode: 0644]
tests/tests2/Makefile