summaryrefslogtreecommitdiff
path: root/tests/type.right
diff options
context:
space:
mode:
Diffstat (limited to 'tests/type.right')
-rw-r--r--tests/type.right34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/type.right b/tests/type.right
index dbd51ca..a628231 100644
--- a/tests/type.right
+++ b/tests/type.right
@@ -46,3 +46,37 @@ file
hits command
3 /tmp/bash
1 /bin/sh
+f is a function
+f ()
+{
+ v='^A'
+}
+foo is a function
+foo ()
+{
+ echo $(<x1)
+}
+bar is a function
+bar ()
+{
+ echo $(<x1)
+}
+foo is a function
+foo ()
+{
+ echo;
+ cat <<END
+bar
+END
+
+ cat <<EOF
+qux
+EOF
+
+}
+
+bar
+qux
+
+bar
+qux