diff options
author | Vincent Burns <discoloda@gmail.com> | 2014-01-14 11:22:59 -0500 |
---|---|---|
committer | Vincent Burns <discoloda@gmail.com> | 2014-01-14 11:22:59 -0500 |
commit | d35dedf041d1ded5843a064c855e8e36dc194221 (patch) | |
tree | b5885c6f67df1d5809ed3dc1334a19aba389baa9 /compiler/c2nim/tests | |
parent | d9a61c13dd4a355a3898b4b852d078a2e1b5f0fd (diff) | |
download | Nim-d35dedf041d1ded5843a064c855e8e36dc194221.tar.gz |
Slightly better type parsing for parameters and cast expressions
Diffstat (limited to 'compiler/c2nim/tests')
-rw-r--r-- | compiler/c2nim/tests/vincent.c | 5 |
1 files changed, 5 insertions, 0 deletions
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., |