1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-23 13:30:01 +00:00

Fixed test case for Issue #1263.

This commit is contained in:
acqn 2021-04-01 11:41:55 +08:00 committed by Oliver Schmidt
parent 1a3628df1a
commit 5d05451ab2

View File

@ -1,15 +1,22 @@
/* bug #1263 - erroneous error for K & R function declaration */ /* bug #1263 - erroneous error for K & R function declaration */
enum E { I = 0 }; enum E { I = 0 };
extern int f(enum E);
extern int f();
int f(e) int f(e)
enum E e; enum E e;
{ {
return e; return e;
} }
extern int g(int);
int g(e)
enum E e;
{
return e;
}
int main(void) int main(void)
{ {
return f(I); return f(I) + g(I);
} }