2020-07-22 13:52:04 +00:00
|
|
|
|
2022-04-17 14:07:52 +00:00
|
|
|
/* pr #1110 - not only should the current test case for #975 compile and work,
|
2020-07-22 13:52:04 +00:00
|
|
|
* but also the code piece below fail to compile and generate errors like commented: */
|
|
|
|
|
|
|
|
static const unsigned char array[3]; /* OK */
|
|
|
|
static const unsigned char array[] = { 0, 1, 2 }; /* OK - complete definition*/
|
|
|
|
static const unsigned char array[3]; /* OK */
|
|
|
|
static const unsigned char array[]; /* OK */
|
|
|
|
static const unsigned char array[] = { 1, 2, 3 }; /* Error - redefinition */
|
2022-04-17 14:07:52 +00:00
|
|
|
static const unsigned char array[4]; /* Error - conflicting size */
|
2020-07-22 13:52:04 +00:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|