mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
16 lines
632 B
C
16 lines
632 B
C
|
|
/* pr #1110 - not only should the current test case for #975 compile and work,
|
|
* 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 */
|
|
static const unsigned char array[4]; /* Error - conflicting size */
|
|
|
|
int main(void)
|
|
{
|
|
return 0;
|
|
}
|