aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/in
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-16 21:24:02 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-16 21:24:02 +0000
commit4858aa179ddc6044c55c8ae8708a76af3e287b05 (patch)
treef9bcc54ed13720c8a74a5dd726ecfdea083a7e28 /c_compiler/test/in
parentf7b531ebaaa784a0dcebb877ec7b831b324f3510 (diff)
downloadCompiler-4858aa179ddc6044c55c8ae8708a76af3e287b05.tar.gz
Compiler-4858aa179ddc6044c55c8ae8708a76af3e287b05.zip
function calls now work completely
Diffstat (limited to 'c_compiler/test/in')
-rw-r--r--c_compiler/test/in/FunctionCall.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/c_compiler/test/in/FunctionCall.c b/c_compiler/test/in/FunctionCall.c
new file mode 100644
index 0000000..75715fc
--- /dev/null
+++ b/c_compiler/test/in/FunctionCall.c
@@ -0,0 +1,9 @@
+int f(int a, int b, int c, int d, int f)
+{
+ return a + b + c+d+f;
+}
+
+int main()
+{
+ return f(1, 2, 3, 4, 5);
+}