xref: /freebsd/bin/sh/tests/builtins/local4.0 (revision 350b7c3570aa6c87c537e54f706f1866f93a4142)
1# $FreeBSD$
2
3f() {
4	local -- x
5	x=2
6	[ "$x" = 2 ]
7}
8x=1
9f || exit 3
10[ "$x" = 1 ] || exit 3
11f || exit 3
12[ "$x" = 1 ] || exit 3
13