mescc: Add 70-struct-short-enum-init.c test with fix.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 21 Jul 2019 14:48:26 +0000 (16:48 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 21 Jul 2019 14:48:26 +0000 (16:48 +0200)
commit2f77f506b1558ae919ac156145c13563739df97e
treec4c7a951adaa3e5e551801058377940ac1c6ca3c
parent8e01a68357cd5916e1a3311ffcbc1378b22f3026
mescc: Add 70-struct-short-enum-init.c test with fix.

* module/mescc/compile.scm (init->data): Respect type of size.
* lib/tests/scaffold/70-struct-short-enum-init.c: New file.
* lib/tests/scaffold/70-struct-short-enum-init.stdout: New file.
* build-aux/check-mescc.sh (TESTS): Add test.
build-aux/check-mescc.sh
lib/tests/scaffold/70-struct-short-enum-init.c [new file with mode: 0644]
lib/tests/scaffold/70-struct-short-enum-init.stdout [new file with mode: 0644]
module/mescc/compile.scm