1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00
cc65/test/val/pr1110a.c
2020-07-22 15:52:04 +02:00

20 lines
574 B
C

/* pr #1110 - the part of the redefinition that should compile */
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 */
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
printf("%u %u %u\n", array[0], array[1], array[2]);
if ((array[0] != 0) || (array[1] != 1) || (array[2] != 2)) {
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}