1 |
# Checking the output filenames. -*- Autotest -*- |
# Checking the output filenames. -*- Autotest -*- |
2 |
# Copyright 2002 Free Software Foundation, Inc. |
# Copyright (C) 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
5 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
20 |
|
|
21 |
# Mostly test that we are robust to mistakes. |
# Mostly test that we are robust to mistakes. |
22 |
|
|
23 |
|
|
24 |
|
## ----------------------- ## |
25 |
|
## Torturing the Scanner. ## |
26 |
|
## ----------------------- ## |
27 |
|
|
28 |
|
AT_SETUP([Torturing the Scanner]) |
29 |
|
|
30 |
|
AT_DATA([input.y], |
31 |
|
[[%{ |
32 |
|
/* This is seen in GCC: a %{ and %} in middle of a comment. */ |
33 |
|
const char *foo = "So %{ and %} can be here."; |
34 |
|
%} |
35 |
|
/* %{ and %} can be here too. */ |
36 |
|
|
37 |
|
%% |
38 |
|
exp: 'a'; |
39 |
|
]]) |
40 |
|
|
41 |
|
AT_CHECK([bison input.y]) |
42 |
|
|
43 |
|
AT_CLEANUP |
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
## ------------ ## |
## ------------ ## |
49 |
## Invalid $n. ## |
## Invalid $n. ## |
50 |
## ------------ ## |
## ------------ ## |