aboutsummaryrefslogtreecommitdiff
path: root/tests/function/call/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-09 14:51:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-09 14:51:48 +0200
commit8a9870ed59225972de389b7b4a494a57390bff1b (patch)
tree280788395cb1895bb2367c931b94c6fe711426ea /tests/function/call/buildfile
parent7a2f5753a12a68e87f8556f6e833710f147533b2 (diff)
Add initial support for function calls: $func(a b c)
Now it is just a stub that prints the function name and its argument. Currently only single argument can be passed (no value pack support yet).
Diffstat (limited to 'tests/function/call/buildfile')
-rw-r--r--tests/function/call/buildfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/function/call/buildfile b/tests/function/call/buildfile
new file mode 100644
index 0000000..93eba14
--- /dev/null
+++ b/tests/function/call/buildfile
@@ -0,0 +1,15 @@
+$identity()
+$identity (a)
+$identity (a b c)
+$identity(sub/dir{x y z})
+
+# Verify we can inhibit function call with quoting.
+#
+foo = FOO
+bar = BAR
+
+print $foo"($bar)"
+print "$foo"($bar)
+print "$foo""($bar)"
+
+./: