aboutsummaryrefslogtreecommitdiff
path: root/test.sil
diff options
context:
space:
mode:
authorCamil Staps2017-07-18 08:59:23 +0000
committerCamil Staps2017-07-18 08:59:23 +0000
commit092a92a1c17470c2cd1cfbefdc8dc4c7c4038e41 (patch)
treea51dc49c00a61ca1a5353e47618e4891e8fdc32b /test.sil
parentCompiling seems to work (diff)
Easier interface
Diffstat (limited to 'test.sil')
-rw-r--r--test.sil13
1 files changed, 6 insertions, 7 deletions
diff --git a/test.sil b/test.sil
index db3abaf..ebbfdda 100644
--- a/test.sil
+++ b/test.sil
@@ -1,12 +1,11 @@
-Int main () {
- Int x;
- Int y;
+Int second(Int x, Int y) {
Int z;
- x := 100;
- y := 50;
z := x;
x := y;
y := z;
- z := x;
- return z;
+ return y;
+}
+
+Int main () {
+ return second(100, 200);
}