aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoe Soroka <gits@joesoroka.com>2011-07-22 02:09:28 -0700
committerJoe Soroka <gits@joesoroka.com>2011-07-22 02:09:28 -0700
commit9b52e16a50e7ed86b4fec6736cd32421fa90785a (patch)
treea90b4b7f7f3c9ac7df15c63787b537c1b5907739 /tests
parentd7d845888808da6191ab6a70942fac6e3eb815ea (diff)
downloadtinycc-9b52e16a50e7ed86b4fec6736cd32421fa90785a.tar.gz
tinycc-9b52e16a50e7ed86b4fec6736cd32421fa90785a.tar.bz2
re-added negative-array-size testcase and fixed fix for it
Diffstat (limited to 'tests')
-rw-r--r--tests/tcctest.c2
1 files changed, 2 insertions, 0 deletions
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__