]> git.saurik.com Git - bison.git/blame - tests/regression.m4
When a literal string is used to define two different tokens,
[bison.git] / tests / regression.m4
CommitLineData
8e03724b
AD
1# -*- Autoconf -*-
2
3cat <<EOF
4
5Regression tests.
6
7EOF
8
9AT_SETUP(Duplicate string)
10
11AT_DATA([duplicate.y],
12[[/* `Bison -v' used to dump core when two tokens are defined with the same
13 string, as LE and GE below. */
14
15%token NUM
16%token LE "<="
17%token GE "<="
18
19%%
20exp: '(' exp ')' | NUM ;
21%%
22]])
23
24AT_CHECK([bison -v duplicate.y -o duplicate.c], 0, ignore, ignore)
25
26AT_CLEANUP(duplicate.*)