mirror of
https://github.com/cc65/cc65.git
synced 2024-11-10 10:04:50 +00:00
Fixed test case for Issue #1263.
This commit is contained in:
parent
1a3628df1a
commit
5d05451ab2
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user