summaryrefslogtreecommitdiff
path: root/apps/examples/bastest/tests/test41.bas
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/bastest/tests/test41.bas')
-rw-r--r--apps/examples/bastest/tests/test41.bas9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/examples/bastest/tests/test41.bas b/apps/examples/bastest/tests/test41.bas
new file mode 100644
index 000000000..f307a866d
--- /dev/null
+++ b/apps/examples/bastest/tests/test41.bas
@@ -0,0 +1,9 @@
+function f(c)
+print "f running"
+if (c) then f=42 : exit function
+f=43
+end function
+
+print f(0)
+print f(1)
+