re-added negative-array-size testcase and fixed fix for it

This commit is contained in:
Joe Soroka
2011-07-22 02:09:28 -07:00
parent d7d8458888
commit 9b52e16a50
2 changed files with 5 additions and 3 deletions

View File

@ -2083,6 +2083,8 @@ void *bounds_checking_is_enabled()
{
char ca[10], *cp = ca-1;
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)