diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-05 08:35:18 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-05 08:35:18 +0300 |
commit | c30a04c8d3a2eef06338934f577fe3416f40d529 (patch) | |
tree | 8504c142721eb8d38cc8e3b4bc6c99481577afd4 /test/indirectcall2.awk | |
parent | 16a26e063e9c62bff0478fa210d875c4eed2b7c0 (diff) | |
download | egawk-c30a04c8d3a2eef06338934f577fe3416f40d529.tar.gz egawk-c30a04c8d3a2eef06338934f577fe3416f40d529.tar.bz2 egawk-c30a04c8d3a2eef06338934f577fe3416f40d529.zip |
New test, indirect call of builtin functions.
Diffstat (limited to 'test/indirectcall2.awk')
-rw-r--r-- | test/indirectcall2.awk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/indirectcall2.awk b/test/indirectcall2.awk new file mode 100644 index 00000000..8f3c9483 --- /dev/null +++ b/test/indirectcall2.awk @@ -0,0 +1,11 @@ +BEGIN { + Quarter_pi = 3.1415927 / 4 + print sin(Quarter_pi) + + f = "sin" + print @f(Quarter_pi) + + print substr("abcdefgh", 2, 3) + f = "substr" + print @f("abcdefgh", 2, 3) +} |