scc

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

commit 280508b30664c2113e2eb64cf39cdf09ac1426fe
parent 75fe85eec73a5d90efa1a723f02578906286c44f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 26 Oct 2022 22:23:05 +0200

test/cc: Fix error/0026-numargs.c

Diffstat:
Mtests/cc/error/0026-numargs.c | 11+++++++++--
Mtests/cc/error/scc-tests.lst | 2+-
2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/tests/cc/error/0026-numargs.c b/tests/cc/error/0026-numargs.c @@ -1,8 +1,15 @@ -#include <stdio.h> +/* +PATTERN: +0026-numargs.c:18: error: incompatible type for argument 1 in function call +0026-numargs.c:19: error: incompatible type for argument 2 in function call +0026-numargs.c:20: error: too many arguments in function call +. +*/ -void +int fn(int a, int b) { + return a+b; } int diff --git a/tests/cc/error/scc-tests.lst b/tests/cc/error/scc-tests.lst @@ -23,7 +23,7 @@ 0023-include.c 0024-lvale-cast.c 0025-bad-init.c -0026-numargs.c [TODO] +0026-numargs.c 0027-constoverflow.c [TODO] 0028-noconstinit.c [TODO] 0029-eof.c