scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 75fe85eec73a5d90efa1a723f02578906286c44f
parent 25f2ff5ba7d7774ae332612e1a41b6c8157d2e98
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 26 Oct 2022 22:20:00 +0200

test/cc: Fix error/0025-bad-init.c

Diffstat:
Mtests/cc/error/0025-bad-init.c | 6++++++
Mtests/cc/error/scc-tests.lst | 2+-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/cc/error/0025-bad-init.c b/tests/cc/error/0025-bad-init.c @@ -1,3 +1,9 @@ +/* +PATTERN: +0025-bad-init.c:7: warning: initializer-string for array of chars is too long +. +*/ + char s2[2] = "foo"; int diff --git a/tests/cc/error/scc-tests.lst b/tests/cc/error/scc-tests.lst @@ -22,7 +22,7 @@ 0022-cpp-if.c [TODO] 0023-include.c 0024-lvale-cast.c -0025-bad-init.c [TODO] +0025-bad-init.c 0026-numargs.c [TODO] 0027-constoverflow.c [TODO] 0028-noconstinit.c [TODO]