mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 22:25:28 +00:00
Fixed test case for Issue #1263.
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
/* bug #1263 - erroneous error for K & R function declaration */
|
||||
|
||||
enum E { I = 0 };
|
||||
extern int f(enum E);
|
||||
|
||||
extern int f();
|
||||
int f(e)
|
||||
enum E e;
|
||||
{
|
||||
return e;
|
||||
}
|
||||
|
||||
extern int g(int);
|
||||
int g(e)
|
||||
enum E e;
|
||||
{
|
||||
return e;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return f(I);
|
||||
return f(I) + g(I);
|
||||
}
|
Reference in New Issue
Block a user