aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/09_void_func.sy
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/09_void_func.sy')
-rw-r--r--tests/functional/09_void_func.sy13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/functional/09_void_func.sy b/tests/functional/09_void_func.sy
new file mode 100644
index 0000000..2799e1e
--- /dev/null
+++ b/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