diff --git a/TODO b/TODO index 3a5bcc3..f34d4e5 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,6 @@ TODO Bugs: -* defining functions with no parameters (in interactive mode?) * int fact(int i) { if (i < 2) { return i; diff --git a/tests/07_function.c b/tests/07_function.c index 64950d2..a52822d 100644 --- a/tests/07_function.c +++ b/tests/07_function.c @@ -13,3 +13,9 @@ void vfunc(int a) vfunc(1234); +void qfunc() +{ + printf("qfunc()\n"); +} + +qfunc(); diff --git a/tests/07_function.expect b/tests/07_function.expect index 0c6781c..8ffb0a7 100644 --- a/tests/07_function.expect +++ b/tests/07_function.expect @@ -1,3 +1,4 @@ 9 16 a=1234 +qfunc()