diff options
Diffstat (limited to 'test/fnmisc.awk')
-rw-r--r-- | test/fnmisc.awk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fnmisc.awk b/test/fnmisc.awk new file mode 100644 index 00000000..4dcc94ee --- /dev/null +++ b/test/fnmisc.awk @@ -0,0 +1,13 @@ +# Tue Feb 4 12:20:10 IST 2003 + +# Misc functions tests, in case we start mucking around in the grammar again. + +# Empty body shouldn't hurt anything: +function f() {} +BEGIN { f() } + +# Using a built-in function name should manage the symbol table +# correctly: +function split(x) { return x } + +function x(a) { return a } |