aboutsummaryrefslogtreecommitdiffstats
path: root/test/paramuninitglobal.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/paramuninitglobal.awk')
-rw-r--r--test/paramuninitglobal.awk17
1 files changed, 15 insertions, 2 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
+}