82 |
|
|
83 |
|
|
84 |
## -------------- ## |
## -------------- ## |
85 |
## Type clashes. ## |
## Type Clashes. ## |
86 |
## -------------- ## |
## -------------- ## |
87 |
|
|
88 |
AT_SETUP([Type clashes]) |
AT_SETUP([Type Clashes]) |
89 |
|
|
90 |
AT_DATA([input.y], |
AT_DATA([input.y], |
91 |
[[%token foo |
[[%token foo |
98 |
]]) |
]]) |
99 |
|
|
100 |
AT_CHECK([bison input.y], [1], [], |
AT_CHECK([bison input.y], [1], [], |
101 |
[[input.y:5: type clash (`bar' `') on default action |
[[input.y:4.4-15: type clash (`bar' `') on default action |
102 |
input.y:6: type clash (`bar' `') on default action |
input.y:5.4-8: type clash (`bar' `') on default action |
103 |
input.y:7: empty rule for typed nonterminal, and no action |
input.y:6.4: empty rule for typed nonterminal, and no action |
104 |
]]) |
]]) |
105 |
|
|
106 |
AT_CLEANUP |
AT_CLEANUP |