summaryrefslogtreecommitdiff
path: root/test/indirectcall2.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/indirectcall2.awk')
-rw-r--r--test/indirectcall2.awk11
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)
+}