mes/lib/tests/scaffold
Jan Nieuwenhuizen 2f77f506b1
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.
2019-07-21 16:48:26 +02:00
..
00-exit-0.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
01-return-0.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
02-return-1.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
02-return-1.exit test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
03-call.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
04-call-0.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
05-call-1.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
05-call-1.exit test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
06-call-2.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
06-call-not-1.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
06-call-string.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
06-call-variable.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
06-not-call-1.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
06-return-void.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
07-include.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
07-include.exit test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7a-struct-char-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7b-struct-int-array-hello.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7b-struct-int-array-pointer.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7b-struct-int-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7c-dynarray.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7d-cast-char.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7e-struct-array-access.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7f-struct-pointer-arithmetic.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7g-struct-byte-word-field.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7h-struct-assign.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7i-struct-struct-simple.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7i-struct-struct.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7k-empty-for.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7k-for-each-elem-simple.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7k-for-each-elem.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7l-struct-any-size-array-simple.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7l-struct-any-size-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7m-struct-char-array-assign.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7n-struct-struct-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7o-struct-pre-post-simple.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7o-struct-pre-post.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7p-struct-cast.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7q-bit-field-simple.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7q-bit-field.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7r-sign-extend.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7s-struct-short.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7s-unsigned-compare.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7t-function-destruct.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7u-call-ternary.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7u-double.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7u-inc-byte-word.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7u-long-long.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7u-struct-func.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7u-struct-size10.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7u-ternary-expression.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
7u-vstack.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
08-assign-global.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
08-assign-negative.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
08-assign.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
10-if-0.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
11-if-1.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
12-if-eq.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
13-if-neq.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
14-if-goto.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
15-if-not-f.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
16-if-t.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-and-or.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-and.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-assign.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-call.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-char.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-ge.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-gt.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-le.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-lt.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-or.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-unsigned-char-le.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-unsigned-ge.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-unsigned-gt.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-unsigned-le.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-unsigned-long-le.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-unsigned-lt.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
17-compare-unsigned-short-le.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
18-assign-shadow.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
20-while.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
21-char-array-simple.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
21-char-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
22-while-char-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
23-global-pointer-init-null.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
23-global-pointer-init.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
23-global-pointer-pointer-ref.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
23-global-pointer-ref.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
23-pointer-sub.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
23-pointer.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
32-call-wrap.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
32-compare.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
33-and-or.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
34-pre-post.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
35-compare-char.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
36-compare-arithmetic.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
37-compare-assign.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
38-compare-call-2.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
38-compare-call-3.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
38-compare-call.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
40-if-else.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
41-ternary.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
42-goto-label.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
43-for-do-while.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
44-switch-body-fallthrough.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
44-switch-fallthrough.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
44-switch.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
45-void-call.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
46-function-static.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
47-function-expression.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
48-global-static.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
51-pointer-sub.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
54-argc.c test: Enable argv test, run tests with arguments. 2019-06-26 19:49:36 +02:00
54-argv.c test: Enable argv test, run tests with arguments. 2019-06-26 19:49:36 +02:00
55-char-array.c test: Oops, uncomment some commented-out tests. 2019-06-25 20:11:57 +02:00
60-math.c build: Simplify. 2019-06-08 15:36:22 +02:00
61-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
62-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
63-struct-array-assign.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
63-struct-array-compare.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
63-struct-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
63-struct-assign.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
63-struct-cell.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
63-struct-function.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
63-struct-local.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
63-struct-pointer.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
63-struct.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
64-make-cell.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
65-read.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
66-local-char-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
70-array-in-struct-init.c mescc: Add 70-array-in-struct-init.c test with fix. 2019-07-20 17:14:55 +02:00
70-array-in-struct-init.stdout mescc: Add 70-array-in-struct-init.c test with fix. 2019-07-20 17:14:55 +02:00
70-stdarg.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
70-struct-short-enum-init.c mescc: Add 70-struct-short-enum-init.c test with fix. 2019-07-21 16:48:26 +02:00
70-struct-short-enum-init.stdout mescc: Add 70-struct-short-enum-init.c test with fix. 2019-07-21 16:48:26 +02:00
71-struct-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
72-typedef-struct-def-local.c test: Split-off broken 72-typedef-struct-def-local. 2019-07-08 09:04:01 +02:00
72-typedef-struct-def.c test: Split-off broken 72-typedef-struct-def-local. 2019-07-08 09:04:01 +02:00
73-union-hello.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
73-union.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
74-multi-line-string.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
75-struct-union.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
76-pointer-arithmetic-pp.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
76-pointer-arithmetic.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
77-pointer-assign.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
78-union-struct.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
79-int-array-simple.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
79-int-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
82-define.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
83-heterogenoous-init.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
84-struct-field-list.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
85-sizeof.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
90-goto-var.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
91-goto-array.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
a0-call-trunc-char.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
a0-call-trunc-int.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
a0-call-trunc-short.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
a0-math-divide-signed-negative.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
a1-global-no-align.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
a1-global-no-clobber.c test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
exit-42.i test: Move scaffold/tests into lib. 2019-06-08 15:34:44 +02:00
t.c build: Simplify. 2019-06-08 15:36:22 +02:00