summaryrefslogtreecommitdiff
path: root/data/test6.c
diff options
context:
space:
mode:
authorLizzy Hunt <elizabeth.hunt@simponic.xyz>2023-04-10 09:17:11 -0600
committerLizzy Hunt <elizabeth.hunt@simponic.xyz>2023-04-10 09:17:11 -0600
commit5f28f80c4e25a56cd444914c2f0b3da5e7fdb088 (patch)
tree600ad8b1ec5aad5155baf8c0352281054a8e6366 /data/test6.c
downloadcminus-5f28f80c4e25a56cd444914c2f0b3da5e7fdb088.tar.gz
cminus-5f28f80c4e25a56cd444914c2f0b3da5e7fdb088.zip
Initial commit - building
Diffstat (limited to 'data/test6.c')
-rw-r--r--data/test6.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/data/test6.c b/data/test6.c
new file mode 100644
index 0000000..03de49c
--- /dev/null
+++ b/data/test6.c
@@ -0,0 +1,15 @@
+void add(int x, int y) {
+ int i;
+ println(x+y);
+}
+
+void main() {
+ int a;
+ int b;
+ println("This program prints 7 7");
+ add(3, 4);
+
+ a = 5;
+ b = 2;
+ add(a, b);
+}