aboutsummaryrefslogtreecommitdiff
path: root/test.sil
diff options
context:
space:
mode:
authorCamil Staps2017-07-17 22:44:24 +0000
committerCamil Staps2017-07-17 22:44:24 +0000
commit23eeaac32323bf70c1f84cb9a13d9e5a57bc04ee (patch)
treeeacc5b8b57946bd5e26d010f5c689699f47150ed /test.sil
parentInitial commit (diff)
Fix some incorrect ABC instructions
Diffstat (limited to 'test.sil')
-rw-r--r--test.sil9
1 files changed, 8 insertions, 1 deletions
diff --git a/test.sil b/test.sil
index 8f6b371..db3abaf 100644
--- a/test.sil
+++ b/test.sil
@@ -1,5 +1,12 @@
Int main () {
Int x;
+ Int y;
+ Int z;
x := 100;
- return x;
+ y := 50;
+ z := x;
+ x := y;
+ y := z;
+ z := x;
+ return z;
}