2015-08-13 03:39:35 -04:00
|
|
|
/*
|
|
|
|
!!DESCRIPTION!! global non-static and static conflicts
|
|
|
|
!!ORIGIN!! cc65 regression tests
|
|
|
|
!!LICENCE!! Public Domain
|
|
|
|
!!AUTHOR!! Greg King
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
see: https://github.com/cc65/cc65/issues/191
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma warn(error, on)
|
|
|
|
|
|
|
|
static int n = 0;
|
|
|
|
extern int n; /* should not give an error */
|
2020-08-13 00:00:32 +08:00
|
|
|
static int n; /* should not give an error */
|
2015-08-13 03:39:35 -04:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
return n;
|
|
|
|
}
|