test/fnmisc.awk
raw| 1 | # Tue Feb 4 12:20:10 IST 2003 |
| 2 | |
| 3 | # Misc functions tests, in case we start mucking around in the grammar again. |
| 4 | |
| 5 | # Empty body shouldn't hurt anything: |
| 6 | function f() {} |
| 7 | BEGIN { f() } |
| 8 | |
| 9 | # Using a built-in function name should manage the symbol table |
| 10 | # correctly: |
| 11 | function split(x) { return x } |
| 12 | |
| 13 | function x(a) { return a } |