]>
Commit | Line | Data |
---|---|---|
1 | # -*- Autoconf -*- | |
2 | ||
3 | cat <<EOF | |
4 | ||
5 | Regression tests. | |
6 | ||
7 | EOF | |
8 | ||
9 | ||
10 | ## ------------------ ## | |
11 | ## Duplicate string. ## | |
12 | ## ------------------ ## | |
13 | ||
14 | ||
15 | AT_SETUP([Duplicate string]) | |
16 | ||
17 | AT_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 | %% | |
26 | exp: '(' exp ')' | NUM ; | |
27 | %% | |
28 | ]]) | |
29 | ||
30 | AT_CHECK([bison -v duplicate.y -o duplicate.c], 0, ignore, ignore) | |
31 | ||
32 | AT_CLEANUP([duplicate.*]) | |
33 | ||
34 | ||
35 | ||
36 | ## ---------------------- ## | |
37 | ## %union and --defines. ## | |
38 | ## ---------------------- ## | |
39 | ||
40 | ||
41 | AT_SETUP([%union and --defines]) | |
42 | ||
43 | AT_DATA([union.y], | |
44 | [%union | |
45 | { | |
46 | int integer; | |
47 | char *string ; | |
48 | } | |
49 | %% | |
50 | exp: {}; | |
51 | ]) | |
52 | ||
53 | AT_CHECK([bison --defines union.y]) | |
54 | ||
55 | AT_CLEANUP([union.*]) |