diff options
Diffstat (limited to 'rcc-legacy/tests/functional/09_void_func.sy')
| -rw-r--r-- | rcc-legacy/tests/functional/09_void_func.sy | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rcc-legacy/tests/functional/09_void_func.sy b/rcc-legacy/tests/functional/09_void_func.sy new file mode 100644 index 0000000..2799e1e --- /dev/null +++ b/rcc-legacy/tests/functional/09_void_func.sy @@ -0,0 +1,13 @@ +int a,b,c; + +void add(int a,int b){ + c=a+b; + return; +} + +int main(){ + a=3; + b=2; + add(a,b); + return c; +}
\ No newline at end of file |
