From 9b52e16a50e7ed86b4fec6736cd32421fa90785a Mon Sep 17 00:00:00 2001 From: Joe Soroka Date: Fri, 22 Jul 2011 02:09:28 -0700 Subject: re-added negative-array-size testcase and fixed fix for it --- tests/tcctest.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/tcctest.c') diff --git a/tests/tcctest.c b/tests/tcctest.c index 3581a7a..92f239e 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -2083,6 +2083,8 @@ void *bounds_checking_is_enabled() return (ca != cp + 1) ? cp : NULL; } +typedef int constant_negative_array_size_as_compile_time_assertion_idiom[(1 ? 2 : 0) - 1]; + void c99_vla_test(int size1, int size2) { #if defined __i386__ || defined __x86_64__ -- cgit v1.3.1