summaryrefslogtreecommitdiff
path: root/tests/function_call.c
diff options
context:
space:
mode:
authorDavid Moc <personal@cdatgoose.org>2026-03-05 23:38:49 +0100
committerDavid Moc <personal@cdatgoose.org>2026-03-05 23:38:49 +0100
commit0385817bb1301a778bb33f8405a435293b9f8905 (patch)
tree53f4b6f13e393bd368c37ba4363826b46940dfd3 /tests/function_call.c
parent262abf9b552a168ef3ae91f91af97683f16420a7 (diff)
Pushing to repo for safety.
Diffstat (limited to 'tests/function_call.c')
-rw-r--r--tests/function_call.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/function_call.c b/tests/function_call.c
new file mode 100644
index 0000000..1af6ef8
--- /dev/null
+++ b/tests/function_call.c
@@ -0,0 +1,14 @@
+int add(int a, int b) {
+ return a + b;
+}
+
+int multiply(int x, int y) {
+ return x * y;
+}
+
+int main() {
+ int result1 = add(3, 4);
+ int result2 = multiply(2, 5);
+ int result3 = add(result1, result2);
+ return result3;
+}