1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-15 11:05:56 +00:00
cc65/test/err/duplicate-static-global.c

19 lines
320 B
C

/*
!!DESCRIPTION!! static duplicated with global variable
!!ORIGIN!! cc65 regression tests
!!LICENCE!! Public Domain
!!AUTHOR!! Piotr Fusik
*/
/*
see: https://github.com/cc65/cc65/issues/191
*/
static int n = 0;
int n = 0; /* should give an error */
int main(void)
{
return n;
}