diff options
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/lingo/tests/global.lingo | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/director/lingo/tests/global.lingo b/engines/director/lingo/tests/global.lingo new file mode 100644 index 0000000000..a658a44115 --- /dev/null +++ b/engines/director/lingo/tests/global.lingo @@ -0,0 +1,25 @@ +on initPattern + global MaxPattern + set MaxPattern = 65 + put "first: " & MaxPattern + set a = 5 +end initPattern + +on increase + global MaxPattern + set MaxPattern = MaxPattern + 1 + put MaxPattern + set a = 10 +end increase + +set a = 8 +set MaxPattern = 3 + +initPattern + +increase +increase + +put MaxPattern + +put a |