summaryrefslogtreecommitdiff
path: root/tests/test-yylmax
blob: a89fea9df6dcd18bc43039c8d3a154947092b8e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh
# Test %yylmax option of flex in any cpp-based back end

trap 'rm /tmp/td$$' EXIT HUP INT QUIT TERM 
cat >/tmp/td$$ <<EOF
%option yylmax=333
%%
%%
EOF

( ../src/flex -t /tmp/td$$  | grep "#define YYLMAX 333" >/dev/null ) || (echo "%yylmax test failed." >&2; exit 1)