summaryrefslogtreecommitdiff
path: root/tests/g.stage
diff options
context:
space:
mode:
Diffstat (limited to 'tests/g.stage')
-rw-r--r--tests/g.stage36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/g.stage b/tests/g.stage
new file mode 100644
index 0000000..05ca5ad
--- /dev/null
+++ b/tests/g.stage
@@ -0,0 +1,36 @@
1situation <<start>>
2{
3 setup
4 {
5 display("pre start");
6 a();
7 display("post start");
8 }
9 enter
10 {
11 display("Start::Enter");
12 }
13}
14
15function a()
16{
17 display("pre a");
18 b();
19 display("post a");
20}
21
22function b()
23{
24 display("pre b");
25 goto( <<2>> );
26 display("post b");
27}
28
29situation <<2>>
30{
31 enter
32 {
33 display("pre 2");
34 }
35}
36