scc

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

commit eed755976f16d60e0ea264cc7b374fa94c401028
parent ac47b6b038c013c2084ef1d8d3d40841034b257c
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 26 Oct 2022 16:35:07 +0200

test/cc: Add error/0032-krtypes.c

Thanks to xavi.dcr@tutanota.com!
test/cc: Fix error/0009-unmatchedcppelif.c

Diffstat:
Mtests/cc/error/0009-unmatchedcppelif.c | 2+-
Atests/cc/error/0032-krtypes.c | 22++++++++++++++++++++++
Mtests/cc/error/scc-tests.lst | 3++-
3 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/tests/cc/error/0009-unmatchedcppelif.c b/tests/cc/error/0009-unmatchedcppelif.c @@ -1,6 +1,6 @@ /* PATTERN: - +0009-unmatchedcppelif.c:7: error: #elif without #ifdef/ifndef . */ diff --git a/tests/cc/error/0032-krtypes.c b/tests/cc/error/0032-krtypes.c @@ -0,0 +1,22 @@ +/* +PATTERN: +0032-krtypes.c:21: error: too many arguments in function call +. +*/ + +int f(); + +int bar() +{ + return f(0); +} + +int f() +{ + return 0; +} + +int z() +{ + return f(0); +} diff --git a/tests/cc/error/scc-tests.lst b/tests/cc/error/scc-tests.lst @@ -6,7 +6,7 @@ 0006-endif.c 0007-unmatchedcppif.c 0008-unmatchedcppelse.c -0009-unmatchedcppelif.c [TODO] +0009-unmatchedcppelif.c 0010-extraelif.c [TODO] 0011-extraelse.c [TODO] 0012-ifnoexpr.c [TODO] @@ -29,3 +29,4 @@ 0029-eof.c 0030-krtypes.c 0031-krtypes.c +0032-krtypes.c