aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/86-struct-init.expect
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-07-31 05:43:17 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:09 +0100
commited7d54651d2ef33dd6f644f23ba2fa64706e84db (patch)
tree6e9f026ed352aa684be2b6554be698cb2112a4c8 /tests/tests2/86-struct-init.expect
parent968bccdd2aae0c737c3e4c7ba0fc7e8900d1055a (diff)
downloadtinycc-ed7d54651d2ef33dd6f644f23ba2fa64706e84db.tar.gz
tinycc-ed7d54651d2ef33dd6f644f23ba2fa64706e84db.tar.bz2
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.
Diffstat (limited to 'tests/tests2/86-struct-init.expect')
-rw-r--r--tests/tests2/86-struct-init.expect27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/tests2/86-struct-init.expect b/tests/tests2/86-struct-init.expect
new file mode 100644
index 0000000..221048f
--- /dev/null
+++ b/tests/tests2/86-struct-init.expect
@@ -0,0 +1,27 @@
+ce: 1 12
+gs: 1 2 3 4
+gs2: 1 2 3 4
+gt: 68 65 6c 6c 6f 0 0 0 0 0 0 0 0 0 0 0 2a
+gu: 3 5 6 7 8 4 68 75 68 75 0 0 0 0 0 0 0 0 0 0 0 0 2b
+gu2: 3 5 6 7 8 4 68 75 68 75 0 0 0 0 0 0 0 0 0 0 0 0 2b
+gu3: 3 5 6 7 8 4 68 75 68 75 0 0 0 0 0 0 0 0 0 0 0 0 2b
+gu4: 3 5 6 7 0 5 62 6c 61 0 0 0 0 0 0 0 0 0 0 0 0 0 2c
+gs3: 1 2 3 4
+gv: 3 4 5 6 68 61 68 61 0 0 0 0 0 0 0 0 0 0 0 0 2d 2e
+gv2: 7 8 9 a 68 69 68 69 0 0 0 0 0 0 0 0 0 0 0 0 2f 30
+gv3: 7 8 9 a 68 6f 68 6f 0 0 0 0 0 0 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