1#! /bin/sh
2# assign.test - check that we don't put break or continue on the same
3#               line as an assignment
4
5# Test script header.
6need_prefix=no
7if test -z "$srcdir"; then
8  srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
9  test "$srcdir" = "$0" && srcdir=.
10  test "${VERBOSE+set}" != "set" && VERBOSE=yes
11fi
12. $srcdir/defs || exit 1
13
14# Check that test -e isn't used in our portable shell scripts.
15if $EGREP -n '[^	 ]=[^	 ].*(break|continue)' $srcdir/../ltmain.sh; then
16  echo "cannot use \`break' or \`continue' on the same line as an assignment"
17  exit 1
18fi
19
20exit 0
21