85 |
AT_DATA_STACK_TORTURE |
AT_DATA_STACK_TORTURE |
86 |
|
|
87 |
# Below the limit of 200. |
# Below the limit of 200. |
88 |
AT_CHECK([input 20], 0, [], [ignore]) |
AT_CHECK([./input 20], 0, [], [ignore]) |
89 |
# Two enlargements: 2 * 2 * 200. |
# Two enlargements: 2 * 2 * 200. |
90 |
AT_CHECK([input 900], 0, [], [ignore]) |
AT_CHECK([./input 900], 0, [], [ignore]) |
91 |
# 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 |
92 |
# multiply by two starting at 200 => 5120 is the last possible). |
# multiply by two starting at 200 => 5120 is the last possible). |
93 |
AT_CHECK([input 10000], 1, [], [ignore]) |
AT_CHECK([./input 10000], 1, [], [ignore]) |
94 |
|
|
95 |
AT_CLEANUP |
AT_CLEANUP |
96 |
|
|
106 |
AT_DATA_STACK_TORTURE([[#define YYSTACK_USE_ALLOCA 0]]) |
AT_DATA_STACK_TORTURE([[#define YYSTACK_USE_ALLOCA 0]]) |
107 |
|
|
108 |
# Below the limit of 200. |
# Below the limit of 200. |
109 |
AT_CHECK([input 20], 0, [], [ignore]) |
AT_CHECK([./input 20], 0, [], [ignore]) |
110 |
# Two enlargements: 2 * 2 * 200. |
# Two enlargements: 2 * 2 * 200. |
111 |
AT_CHECK([input 900], 0, [], [ignore]) |
AT_CHECK([./input 900], 0, [], [ignore]) |
112 |
# 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 |
113 |
# multiply by two starting at 200 => 5120 is the possible). |
# multiply by two starting at 200 => 5120 is the possible). |
114 |
AT_CHECK([input 10000], 1, [], [ignore]) |
AT_CHECK([./input 10000], 1, [], [ignore]) |
115 |
|
|
116 |
AT_CLEANUP |
AT_CLEANUP |
117 |
|
|