aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/in/AddMult.c
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/test/in/AddMult.c')
-rw-r--r--c_compiler/test/in/AddMult.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/c_compiler/test/in/AddMult.c b/c_compiler/test/in/AddMult.c
new file mode 100644
index 0000000..a8fa566
--- /dev/null
+++ b/c_compiler/test/in/AddMult.c
@@ -0,0 +1,10 @@
+int main() {
+ int x;
+ int a = 8;
+ int b = 5;
+ int c = 7;
+ int d = 3;
+ x = a * b + c * d;
+
+ return x;
+}