add test case for VLA segfaults
commitbd489a48153aeb24ffa5eccb1fa0199f9c7ea994
authorPhilip <pipcet@gmail.com>
Mon, 27 Apr 2015 14:41:57 +0000 (27 14:41 +0000)
committerPhilip <pipcet@gmail.com>
Mon, 27 Apr 2015 14:55:23 +0000 (27 14:55 +0000)
tree0da851accfcdbc99807ebb7833106b8ef0cd1ad9
parentbbcb54a1f40fe283a3503268dd141657598c2623
add test case for VLA segfaults

This test obviously shouldn't segfault, but currently does so. The
problem is in the VLA code, which fails to save the stack pointer before
taking a conditional branch in some cases.

See this thread:
http://lists.nongnu.org/archive/html/tinycc-devel/2015-04/msg00130.html
tests/tests2/78_vla_label.c [new file with mode: 0644]
tests/tests2/78_vla_label.expect [new file with mode: 0644]
tests/tests2/Makefile