aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-25 20:44:32 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-25 20:44:32 +0200
commitfe915601a150502c2561628148ec318cf738f1fa (patch)
treeacc021e0a3c447c086922c22a856f166e42ed94c /test
parentb0648b574c42f1d56253938a46f5299c95eef702 (diff)
downloadegawk-fe915601a150502c2561628148ec318cf738f1fa.tar.gz
egawk-fe915601a150502c2561628148ec318cf738f1fa.tar.bz2
egawk-fe915601a150502c2561628148ec318cf738f1fa.zip
Additional bug fix from John Haque.
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