From: Matthias Braun Date: Tue, 27 Nov 2007 18:27:38 +0000 (+0000) Subject: test some detail about unspecified parameters X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b84d440a8543e600199c0ffd6fc0a629a932f460;p=cparser test some detail about unspecified parameters [r18554] --- diff --git a/parsetest/shouldfail/unspec_params.c b/parsetest/shouldfail/unspec_params.c new file mode 100644 index 0000000..2dae23c --- /dev/null +++ b/parsetest/shouldfail/unspec_params.c @@ -0,0 +1,12 @@ + +void f(); + +void f() { +} + +int main(void) +{ + /* should at least give a warning */ + f(5); + return 0; +}