Fix accidental use of VLAs that causes these tests to fail after Clang

commit 552c6c2328.
This commit is contained in:
Richard Smith 2020-10-16 15:13:23 -07:00
parent d30155feaa
commit efd02c1548
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
int main(int argc, char **argv) { int main(int argc, char **argv) {
assert(argc >= 2); assert(argc >= 2);
const size_t size = 100; enum { size = 100 };
char fill = 'o'; char fill = 'o';
char s1[size]; char s1[size];
char s2[size]; char s2[size];

View File

@ -22,7 +22,7 @@
int main(int argc, char **argv) { int main(int argc, char **argv) {
assert(argc >= 2); assert(argc >= 2);
const size_t size = 100; enum { size = 100 };
char fill = 'o'; char fill = 'o';
char s1[size]; char s1[size];
char s2[size]; char s2[size];