From 6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 Mon Sep 17 00:00:00 2001 From: Elizabeth Alexander Hunt Date: Thu, 2 Jul 2026 11:55:17 -0700 Subject: Init --- Homework/cs5300/compiler/p5-compiler/data/test6.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Homework/cs5300/compiler/p5-compiler/data/test6.c (limited to 'Homework/cs5300/compiler/p5-compiler/data/test6.c') diff --git a/Homework/cs5300/compiler/p5-compiler/data/test6.c b/Homework/cs5300/compiler/p5-compiler/data/test6.c new file mode 100644 index 0000000..03de49c --- /dev/null +++ b/Homework/cs5300/compiler/p5-compiler/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); +} -- cgit v1.3