mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 21:32:19 +00:00
21 lines
340 B
C
21 lines
340 B
C
|
/*
|
||
|
!!DESCRIPTION!! duplicate static variables
|
||
|
!!ORIGIN!! cc65 regression tests
|
||
|
!!LICENCE!! Public Domain
|
||
|
!!AUTHOR!! Piotr Fusik
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
see: https://github.com/cc65/cc65/issues/191
|
||
|
*/
|
||
|
|
||
|
#pragma warn(error, on)
|
||
|
|
||
|
static int n = 0;
|
||
|
static int n = 0; /* should give an error */
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
return n;
|
||
|
}
|