diff options
author | Michael Forney <mforney@mforney.org> | 2019-02-12 13:56:50 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-02-12 13:56:50 -0800 |
commit | 090ae821ce8a075e13ebf47c04e4e2781c295283 (patch) | |
tree | 2e3fdd4d6a6bc83bb354fd01c8f9831052ffb64d /tests | |
parent | 07e3ee1cf0851129eeb51e671819f7f550ec1e4c (diff) | |
download | cproc-090ae821ce8a075e13ebf47c04e4e2781c295283.tar.xz |
Fix nested arrays
We need to traverse the type hierarchy from inside to out to calculate
size/alignment of arrays.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/nested-array.c | 1 | ||||
-rw-r--r-- | tests/nested-array.qbe | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/nested-array.c b/tests/nested-array.c new file mode 100644 index 0000000..3c62258 --- /dev/null +++ b/tests/nested-array.c @@ -0,0 +1 @@ +int x[2][3];
\ No newline at end of file diff --git a/tests/nested-array.qbe b/tests/nested-array.qbe new file mode 100644 index 0000000..cfc6bed --- /dev/null +++ b/tests/nested-array.qbe @@ -0,0 +1 @@ +export data $x = align 4 { z 24 } |