From 44925757997baa7e92864d43a763d6732c62e8b8 Mon Sep 17 00:00:00 2001 From: "benjamin.franksen" <benjamin.franksen@helmholtz-berlin.de> Date: Wed, 9 Oct 2013 21:13:57 +0000 Subject: [PATCH] test: check that an empty argument list is treated as (void) --- test/compiler/funcdef.st | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/compiler/funcdef.st b/test/compiler/funcdef.st index e6766fa7..c766db52 100644 --- a/test/compiler/funcdef.st +++ b/test/compiler/funcdef.st @@ -9,7 +9,7 @@ ss simple { state simple { when () { void *p = f1(); - p = f2(p,0); + p = f2(p,(double **)f1a); pvSetX(1.0); } exit } @@ -20,6 +20,11 @@ void *f1(void) return 0; } +void *f1a() +{ + return 0; +} + void *f2(void *x, double **d) { void *(*f)(void) = (void *(*)(void))x; -- GitLab