scc

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

commit 14d3966cf69de96f4a25b0f4ffb462d51b3b2112
parent 11f3b95b620bb62279800a648d6cb9c736be78d2
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon, 27 Feb 2017 08:26:01 +0100

[tests] Improve error test for void parameter

Diffstat:
Mtests/error/0018-voidparam.c | 21+++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/tests/error/0018-voidparam.c b/tests/error/0018-voidparam.c @@ -1,6 +1,23 @@ +int +a(void, int i) +{ + return 0; +} int -foo(void, int x) +b(int i, void) +{ + return 0; +} + +int +c(void, void) +{ + return 0; +} + +int +d(void, ...) { return 0; } @@ -8,5 +25,5 @@ foo(void, int x) int main() { - return foo(); + return 0; }