]> git.saurik.com Git - bison.git/blame - tests/regression.at
* src/output.c (output): Delete call to reader_output_yylsp.
[bison.git] / tests / regression.at
CommitLineData
c95f2d78
AD
1# -*- Autoconf -*-
2
3cat <<EOF
4
5Regression tests.
6
7EOF
8
9
10## ------------------ ##
11## Duplicate string. ##
12## ------------------ ##
13
14
15AT_SETUP([Duplicate string])
16
17AT_DATA([duplicate.y],
18[[/* `Bison -v' used to dump core when two tokens are defined with the same
19 string, as LE and GE below. */
20
21%token NUM
22%token LE "<="
23%token GE "<="
24
25%%
26exp: '(' exp ')' | NUM ;
27%%
28]])
29
30AT_CHECK([bison -v duplicate.y -o duplicate.c], 0, ignore, ignore)
31
32AT_CLEANUP([duplicate.*])
33
34
35
36## ---------------------- ##
37## %union and --defines. ##
38## ---------------------- ##
39
40
41AT_SETUP([%union and --defines])
42
43AT_DATA([union.y],
44[%union
45{
46 int integer;
47 char *string ;
48}
49%%
50exp: {};
51])
52
53AT_CHECK([bison --defines union.y])
54
55AT_CLEANUP([union.*])