aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoe Soroka <gits@joesoroka.com>2011-07-11 00:00:47 -0700
committerJoe Soroka <gits@joesoroka.com>2011-07-11 00:00:47 -0700
commitcd3d1a45f34be3c9a358f1743bcaf8aac897992e (patch)
tree9e37df5d052cbf077308c77bdeea5816a9e436de /tests
parent38756b506f99454a70402c2589a93e8a9d9d78c6 (diff)
downloadtinycc-cd3d1a45f34be3c9a358f1743bcaf8aac897992e.tar.gz
tinycc-cd3d1a45f34be3c9a358f1743bcaf8aac897992e.tar.bz2
better constant handling for expr_cond
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 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__