scc

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

commit 74c8d15e7e4e737b69c0a2d23790dcdb64db3e46
parent b4f515b94287dcac47fb6fb923700ad066afa523
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 26 Oct 2022 15:32:14 +0200

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

Thanks to xavi.dcr@tutanota.com!

Diffstat:
Atests/cc/error/0030-krtypes.c | 18++++++++++++++++++
Mtests/cc/error/scc-tests.lst | 1+
2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/tests/cc/error/0030-krtypes.c b/tests/cc/error/0030-krtypes.c @@ -0,0 +1,18 @@ +/* +PATTERN: +0030-krtypes.c:15: error: too many arguments in function call +. +*/ + +static void foo() +{ +} + +void bar(); + +int main() +{ + foo(0); + bar(0); + return 0; +} diff --git a/tests/cc/error/scc-tests.lst b/tests/cc/error/scc-tests.lst @@ -27,3 +27,4 @@ 0027-constoverflow.c [TODO] 0028-noconstinit.c [TODO] 0029-eof.c +0030-krtypes.c