From cd3d1a45f34be3c9a358f1743bcaf8aac897992e Mon Sep 17 00:00:00 2001 From: Joe Soroka Date: Mon, 11 Jul 2011 00:00:47 -0700 Subject: better constant handling for expr_cond --- 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 980b436..57459bb 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -2081,6 +2081,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