harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9963715530369376cca9be1ec79504ea73dd4feb
parent 58c35c5ebf2e4ab6d8a73311b40292036d407827
Author: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Date:   Wed, 16 Feb 2022 18:57:25 +0100

ensure @init, @test and @fini functions don't have parameters

Signed-off-by: Bor Grošelj Simić <bor.groseljsimic@telemach.net>

Diffstat:
Msrc/check.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/check.c b/src/check.c @@ -3013,6 +3013,8 @@ check_function(struct context *ctx, "%s function must return void", flags); expect(&adecl->loc, !decl->exported, "%s function cannot be exported", flags); + expect(&adecl->loc, !afndecl->prototype.params, + "%s function cannot have parameters", flags); } scope_pop(&ctx->scope);