From d35dedf041d1ded5843a064c855e8e36dc194221 Mon Sep 17 00:00:00 2001 From: Vincent Burns Date: Tue, 14 Jan 2014 11:22:59 -0500 Subject: Slightly better type parsing for parameters and cast expressions --- compiler/c2nim/tests/vincent.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/c2nim/tests') diff --git a/compiler/c2nim/tests/vincent.c b/compiler/c2nim/tests/vincent.c index b9436c39b..a30077f77 100644 --- a/compiler/c2nim/tests/vincent.c +++ b/compiler/c2nim/tests/vincent.c @@ -3,6 +3,11 @@ int rand(void); +int id(void (*f)(void)) { + f(); + ((void (*)(int))f)(10); +} + int main() { float f = .2, g = 2., -- cgit 1.4.1-2-gfad0