scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit f3b6f7e7ad879702f61fd7d892e27ef7c4c082a8
parent a0d7cc8700a2c88a9e5ac89fc0a542e3a6bb0ac9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  9 Mar 2017 08:21:00 +0100

[tests] Fix error/chktest.sh

The end of pattern is a dot at the beginning of line, but ^ was missed in
the regular expression.

Diffstat:
Mtests/error/chktest.sh | 2+-
Mtests/error/scc-tests.lst | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/error/chktest.sh b/tests/error/chktest.sh @@ -15,7 +15,7 @@ do printf "%s" $state scc $CFLAGS -w -c "$i" 2> $err - echo '/^PATTERN/+;/\./-p' | ed -s $i > $chk + echo '/^PATTERN/+;/^\./-p' | ed -s $i > $chk diff -c $chk $err >> test.log && echo [OK] || echo [FAILED] rm -f *.o done diff --git a/tests/error/scc-tests.lst b/tests/error/scc-tests.lst @@ -16,3 +16,4 @@ 0016-arrayinitsize.c [TODO] 0017-duplicatefunc.c 0018-voidparam.c [TODO] +0019-kr_names.c