]> git.saurik.com Git - bison.git/blame - tests/regression.m4
* src/reader.c (parse_expect_decl): Use `skip_white_space' and
[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.*)
ff4a34be
AD
27# -*- Autoconf -*-
28
29cat <<EOF
30
31Regression tests.
32
33EOF
34
35AT_SETUP(Duplicate string)
36
37AT_DATA([duplicate.y],
38[[/* `Bison -v' used to dump core when two tokens are defined with the same
39 string, as LE and GE below. */
40
41%token NUM
42%token LE "<="
43%token GE "<="
44
45%%
46exp: '(' exp ')' | NUM ;
47%%
48]])
49
50AT_CHECK([bison -v duplicate.y -o duplicate.c], 0, ignore, ignore)
51
52AT_CLEANUP(duplicate.*)