aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/builtins/local7.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/tests/builtins/local7.0')
-rw-r--r--bin/sh/tests/builtins/local7.010
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/sh/tests/builtins/local7.0 b/bin/sh/tests/builtins/local7.0
new file mode 100644
index 000000000000..f7e6fc0aae97
--- /dev/null
+++ b/bin/sh/tests/builtins/local7.0
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+f() {
+ local x
+ readonly x=2
+}
+unset x
+f
+x=4
+[ "$x" = 4 ]