/[bison]/bison/tests/input.at
ViewVC logotype

Diff of /bison/tests/input.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by akim, Mon Mar 4 16:23:35 2002 UTC revision 1.5 by akim, Tue Jun 11 08:08:22 2002 UTC
# Line 24  AT_BANNER([[Input Processing.]]) Line 24  AT_BANNER([[Input Processing.]])
24  ## Invalid $n.  ##  ## Invalid $n.  ##
25  ## ------------ ##  ## ------------ ##
26    
   
27  AT_SETUP([Invalid $n])  AT_SETUP([Invalid $n])
28    
29  AT_DATA([input.y],  AT_DATA([input.y],
# Line 43  AT_CLEANUP Line 42  AT_CLEANUP
42  ## Invalid @n.  ##  ## Invalid @n.  ##
43  ## ------------ ##  ## ------------ ##
44    
   
45  AT_SETUP([Invalid @n])  AT_SETUP([Invalid @n])
46    
47  AT_DATA([input.y],  AT_DATA([input.y],
# Line 56  AT_CHECK([bison input.y], [1], [], Line 54  AT_CHECK([bison input.y], [1], [],
54  ]])  ]])
55    
56  AT_CLEANUP  AT_CLEANUP
57    
58    
59    ## -------------- ##
60    ## Type clashes.  ##
61    ## -------------- ##
62    
63    AT_SETUP([Type clashes])
64    
65    AT_DATA([input.y],
66    [[%token foo
67    %type <bar> exp
68    %%
69    exp: foo {} foo
70       | foo
71       | /* Empty. */
72       ;
73    ]])
74    
75    AT_CHECK([bison input.y], [1], [],
76    [[input.y:5: type clash (`bar' `') on default action
77    input.y:6: type clash (`bar' `') on default action
78    input.y:7: empty rule for typed nonterminal, and no action
79    ]])
80    
81    AT_CLEANUP

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26