diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/parser/func2.0 | 6 | ||||
-rw-r--r-- | tools/regression/bin/sh/parser/func3.0 | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/parser/func2.0 b/tools/regression/bin/sh/parser/func2.0 new file mode 100644 index 0000000..5fd4dda --- /dev/null +++ b/tools/regression/bin/sh/parser/func2.0 @@ -0,0 +1,6 @@ +# $FreeBSD$ + +f() { return 42; } +f() { return 3; } & +f +[ $? -eq 42 ] diff --git a/tools/regression/bin/sh/parser/func3.0 b/tools/regression/bin/sh/parser/func3.0 new file mode 100644 index 0000000..dcac732 --- /dev/null +++ b/tools/regression/bin/sh/parser/func3.0 @@ -0,0 +1,6 @@ +# $FreeBSD$ + +name=/var/empty/nosuch +f() { true; } <$name +name=/dev/null +f |