aboutsummaryrefslogtreecommitdiffstats
path: root/test/paramasfunc2.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-01-30 10:06:16 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-01-30 10:06:16 +0200
commit1bd1b885c7dd16b5e4ab78c040312f6f7d742784 (patch)
treed7e1c0c8dfdf4002d9a0c7f4bf634cafe2663a42 /test/paramasfunc2.awk
parent5153d0f04b7ad460b23ae5a011061f7b93a122ef (diff)
downloadegawk-1bd1b885c7dd16b5e4ab78c040312f6f7d742784.tar.gz
egawk-1bd1b885c7dd16b5e4ab78c040312f6f7d742784.tar.bz2
egawk-1bd1b885c7dd16b5e4ab78c040312f6f7d742784.zip
Disallow calling a function parameter. Check params are not function names.
Diffstat (limited to 'test/paramasfunc2.awk')
-rw-r--r--test/paramasfunc2.awk10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/paramasfunc2.awk b/test/paramasfunc2.awk
new file mode 100644
index 00000000..849b3d1b
--- /dev/null
+++ b/test/paramasfunc2.awk
@@ -0,0 +1,10 @@
+BEGIN{ X() }
+
+function abc() { return "dark corners" }
+
+function X( abc)
+{
+ abc = "stamp out "
+ print abc abc()
+}
+