summaryrefslogtreecommitdiff
path: root/test.stage
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-01-03 23:58:34 -0700
committerMike Buland <eichlan@xagasoft.com>2012-01-03 23:58:34 -0700
commit3a0f68b527cc85bd9847127085415739af784eca (patch)
treef6ea23fd940122d0d757182e4422f8cf86e8d071 /test.stage
parent549069762ccc35352186eb4fe1922883a0c4f213 (diff)
downloadstage-3a0f68b527cc85bd9847127085415739af784eca.tar.gz
stage-3a0f68b527cc85bd9847127085415739af784eca.tar.bz2
stage-3a0f68b527cc85bd9847127085415739af784eca.tar.xz
stage-3a0f68b527cc85bd9847127085415739af784eca.zip
Fixes for +=, -=, *=, /=
Diffstat (limited to 'test.stage')
-rw-r--r--test.stage32
1 files changed, 10 insertions, 22 deletions
diff --git a/test.stage b/test.stage
index b963b2b..654a1e8 100644
--- a/test.stage
+++ b/test.stage
@@ -13,32 +13,20 @@ global
13 } 13 }
14} 14}
15 15
16function subfunction()
17{
18 if true then
19 {
20 return();
21 }
22 display("subfunction()");
23}
24
25function hello()
26{
27 if true == true then
28 {
29 subfunction();
30 display("Yeah!");
31 return();
32 }
33 display("hello()");
34}
35
36situation <<start>> 16situation <<start>>
37{ 17{
38 setup 18 setup
39 { 19 {
40 hello(); 20 x = 10;
41 display("situation"); 21 display( x );
22 x /= 2;
23 display( x );
24 x *= 4;
25 display( x );
26 x -= 10;
27 display( x );
28 x += 20;
29 display( x );
42 exit(); 30 exit();
43 } 31 }
44 32