mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 04:54:54 +00:00
16 lines
298 B
C
16 lines
298 B
C
|
/* Bug 2304 - Visibility of objects/functions undeclared in file scope but 'extern'-declared in unrelated block scopes */
|
||
|
|
||
|
void f1(void)
|
||
|
{
|
||
|
extern int a;
|
||
|
}
|
||
|
|
||
|
/* 'a' is still invisible in the file scope */
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
return a * 0; /* Usage of 'a' should be an error */
|
||
|
}
|
||
|
|
||
|
int a = 42;
|