diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ChangeLog | 2 | ||||
-rw-r--r-- | test/paramuninitglobal.awk | 17 | ||||
-rw-r--r-- | test/paramuninitglobal.ok | 4 |
3 files changed, 19 insertions, 4 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 99dcebb6..b9a29c1b 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -5,7 +5,7 @@ (SHLIB_TESTS): Removed assignconst. (assignconst): Removed test. -2012-12-23 Arnold D. Robbins <arnold@skeeve.com> +2012-12-24 Arnold D. Robbins <arnold@skeeve.com> * 4.0.2: Release tar ball made. 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 |