1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-16 18:08:04 +00:00
cc65/test/err/duplicate-global.c

21 lines
317 B
C

/*
!!DESCRIPTION!! duplicate globals
!!ORIGIN!! cc65 regression tests
!!LICENCE!! Public Domain
!!AUTHOR!! Piotr Fusik
*/
/*
see: https://github.com/cc65/cc65/issues/191
*/
#pragma warn(error, on)
int n = 0;
int n = 0; /* should give an error */
int main(void)
{
return n;
}