1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-17 09:07:32 +00:00
cc65/test/val/pr1110a.c

20 lines
574 B
C
Raw Normal View History

2020-07-22 13:52:04 +00:00
/* 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;
}