Fixed regression: array element of incomplete type.

This commit is contained in:
acqn
2023-10-27 21:51:45 +08:00
parent 94ef5856d0
commit 85e63e99a6
3 changed files with 25 additions and 17 deletions

6
test/err/zero-size.c Normal file
View File

@@ -0,0 +1,6 @@
char a[][] = { 0, 0 }; /* Error: Array type has incomplete element type 'char[]' */
int main(void)
{
return 0;
}