Bug path

‘test_3’: events 1-6
41 if (sz <= LIMIT)
^
|
(1) following ‘true’ branch (when ‘sz <= 1024’)...
42 ptr = alloca (sz); /* { dg-message "memory is allocated on the stack here" } */
~~~~~~~~~~~
|
(2) ...to here
(3) memory is allocated on the stack here
[...]
50 if (sz >= LIMIT)
~
|
(4) following ‘true’ branch (when ‘sz > 1023’)...
51 free (ptr); /* { dg-warning "'free' of memory allocated on the stack by 'alloca'" } */
~~~~~~~~~~
|
(5) ...to here
(6) call to ‘free’ here