aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/paramuninitglobal.awk17
-rw-r--r--test/paramuninitglobal.ok4
2 files changed, 18 insertions, 3 deletions
diff --git a/test/paramuninitglobal.awk b/test/paramuninitglobal.awk
index b59bb248..0d7989d9 100644
--- a/test/paramuninitglobal.awk
+++ b/test/paramuninitglobal.awk
@@ -1,2 +1,15 @@
-function f(x) { a=10; print x; print a}
-BEGIN { f(a) }
+function f(x)
+{
+ a = 10
+ x = 90
+ print x
+ print a
+ a++
+ x++
+ print x
+}
+
+BEGIN {
+ f(a)
+ print a
+}
diff --git a/test/paramuninitglobal.ok b/test/paramuninitglobal.ok
index 069c2ae6..ce1879d7 100644
--- a/test/paramuninitglobal.ok
+++ b/test/paramuninitglobal.ok
@@ -1,2 +1,4 @@
-
+90
10
+91
+11