#!/bin/sh
#
# Test the longest match.
#

. $srcdir/defs || exit 1

cat << EOF >data.in
aaaab
EOF

result=`$states --state=test_first_match data.in 2>&1`
rm -f data.in

if test "X$result" != "Xfail"; then
  exit 1;
fi
