From bd489a48153aeb24ffa5eccb1fa0199f9c7ea994 Mon Sep 17 00:00:00 2001 From: Philip Date: Mon, 27 Apr 2015 14:41:57 +0000 Subject: 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/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/tests2/Makefile') diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile index 87daf7b..470716b 100644 --- a/tests/tests2/Makefile +++ b/tests/tests2/Makefile @@ -96,7 +96,8 @@ TESTS = \ 74_nocode_wanted.test \ 75_array_in_struct_init.test \ 76_dollars_in_identifiers.test \ - 77_push_pop_macro.test + 77_push_pop_macro.test \ + 78_vla_label.test # 34_array_assignment.test -- array assignment is not in C standard -- cgit v1.3.1