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

Diff of /bison/tests/torture.at

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

revision 1.17 by akim, Thu Jun 20 09:08:37 2002 UTC revision 1.18 by akim, Sun Jun 30 17:35:06 2002 UTC
# Line 132  AT_SETUP([Big triangle]) Line 132  AT_SETUP([Big triangle])
132  # it gets killed too.  Of course the parser is to be cleaned.  # it gets killed too.  Of course the parser is to be cleaned.
133  AT_DATA_TRIANGULAR_GRAMMAR([input.y], [200])  AT_DATA_TRIANGULAR_GRAMMAR([input.y], [200])
134  AT_CHECK([bison input.y -v -o input.c])  AT_CHECK([bison input.y -v -o input.c])
135  AT_CHECK([$CC $CFLAGS $CPPFLAGS input.c -o input], 0, [], [ignore])  AT_COMPILE([input])
136  AT_CHECK([./input])  AT_PARSER_CHECK([./input])
137    
138  AT_CLEANUP  AT_CLEANUP
139    
# Line 231  AT_SETUP([Big horizontal]) Line 231  AT_SETUP([Big horizontal])
231  #  #
232  AT_DATA_HORIZONTAL_GRAMMAR([input.y], [1000])  AT_DATA_HORIZONTAL_GRAMMAR([input.y], [1000])
233  AT_CHECK([bison input.y -v -o input.c])  AT_CHECK([bison input.y -v -o input.c])
234  AT_CHECK([$CC $CFLAGS $CPPFLAGS input.c -o input], 0, [], [ignore])  AT_COMPILE([input])
235  AT_CHECK([./input])  AT_PARSER_CHECK([./input])
236    
237  AT_CLEANUP  AT_CLEANUP
238    
# Line 350  AT_SETUP([Many lookaheads]) Line 350  AT_SETUP([Many lookaheads])
350    
351  AT_DATA_LOOKAHEADS_GRAMMAR([input.y], [1000])  AT_DATA_LOOKAHEADS_GRAMMAR([input.y], [1000])
352  AT_CHECK([bison input.y -v -o input.c])  AT_CHECK([bison input.y -v -o input.c])
353  AT_CHECK([$CC $CFLAGS $CPPFLAGS input.c -o input], 0, [], [ignore])  AT_COMPILE([input])
354  AT_CHECK([./input])  AT_PARSER_CHECK([./input])
355    
356  AT_CLEANUP  AT_CLEANUP
357    
# Line 407  main (int argc, const char **argv) Line 407  main (int argc, const char **argv)
407  }  }
408  ]])  ]])
409  AT_CHECK([bison input.y -o input.c])  AT_CHECK([bison input.y -o input.c])
410  AT_CHECK([$CC $CFLAGS $CPPFLAGS input.c -o input], 0, [], [ignore])  AT_COMPILE([input])
411  ])  ])
412    
413    
# Line 420  AT_SETUP([Exploding the Stack Size with Line 420  AT_SETUP([Exploding the Stack Size with
420  AT_DATA_STACK_TORTURE  AT_DATA_STACK_TORTURE
421    
422  # Below the limit of 200.  # Below the limit of 200.
423  AT_CHECK([./input 20], 0, [], [ignore])  AT_PARSER_CHECK([./input 20], 0, [], [ignore])
424  # Two enlargements: 2 * 2 * 200.  # Two enlargements: 2 * 2 * 200.
425  AT_CHECK([./input 900], 0, [], [ignore])  AT_PARSER_CHECK([./input 900], 0, [], [ignore])
426  # Fails: beyond the limit of 10,000 (which we don't reach anyway since we  # Fails: beyond the limit of 10,000 (which we don't reach anyway since we
427  # multiply by two starting at 200 => 5120 is the last possible).  # multiply by two starting at 200 => 5120 is the last possible).
428  AT_CHECK([./input 10000], 1, [], [ignore])  AT_PARSER_CHECK([./input 10000], 1, [], [ignore])
429    
430  AT_CLEANUP  AT_CLEANUP
431    
# Line 441  AT_SETUP([Exploding the Stack Size with Line 441  AT_SETUP([Exploding the Stack Size with
441  AT_DATA_STACK_TORTURE([[#define YYSTACK_USE_ALLOCA 0]])  AT_DATA_STACK_TORTURE([[#define YYSTACK_USE_ALLOCA 0]])
442    
443  # Below the limit of 200.  # Below the limit of 200.
444  AT_CHECK([./input 20], 0, [], [ignore])  AT_PARSER_CHECK([./input 20], 0, [], [ignore])
445  # Two enlargements: 2 * 2 * 200.  # Two enlargements: 2 * 2 * 200.
446  AT_CHECK([./input 900], 0, [], [ignore])  AT_PARSER_CHECK([./input 900], 0, [], [ignore])
447  # Fails: beyond the limit of 10,000 (which we don't reach anyway since we  # Fails: beyond the limit of 10,000 (which we don't reach anyway since we
448  # multiply by two starting at 200 => 5120 is the possible).  # multiply by two starting at 200 => 5120 is the possible).
449  AT_CHECK([./input 10000], 1, [], [ignore])  AT_PARSER_CHECK([./input 10000], 1, [], [ignore])
450    
451  AT_CLEANUP  AT_CLEANUP

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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