summaryrefslogtreecommitdiff
path: root/tests/general/statics.icn
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general/statics.icn')
-rw-r--r--tests/general/statics.icn26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/general/statics.icn b/tests/general/statics.icn
new file mode 100644
index 0000000..1b7dcce
--- /dev/null
+++ b/tests/general/statics.icn
@@ -0,0 +1,26 @@
+#SRC: JCON
+
+procedure main()
+ foo()
+ foo()
+ p()
+ p()
+end
+
+procedure foo()
+ static a
+
+ write(image(a))
+ a := 1;
+end
+
+
+procedure p()
+ static c
+ initial c := 0
+
+ c +:= 1
+
+ write(c)
+
+end