summaryrefslogtreecommitdiff
path: root/src/test/hello4.c
diff options
context:
space:
mode:
authorKathy Gray2014-10-27 18:02:03 +0000
committerKathy Gray2014-10-27 18:02:03 +0000
commitdcc835cc3979ca2b07c2bff50bfa7928eab8681c (patch)
treec1d139244ae4c85a9848530843767103828d6d5f /src/test/hello4.c
parentc4bf668b018868e28c286e9aeb931deba2f5657c (diff)
source and assembly of test hello4
Diffstat (limited to 'src/test/hello4.c')
-rw-r--r--src/test/hello4.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/hello4.c b/src/test/hello4.c
new file mode 100644
index 00000000..849e7a8d
--- /dev/null
+++ b/src/test/hello4.c
@@ -0,0 +1,11 @@
+int main() {
+ int x = 6;
+ int y = 7;
+ int z = 0;
+ if ((x * y) > (x - y)) {
+ z = x * y;
+ } else {
+ z = x - y;
+ }
+ return z;
+}