1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 15:29:46 +00:00
cc65/test/val/bug1263.c

23 lines
239 B
C
Raw Normal View History

/* bug #1263 - erroneous error for K & R function declaration */
2020-09-23 21:51:24 +00:00
enum E { I = 0 };
2021-04-01 03:41:55 +00:00
extern int f();
2020-09-23 21:51:24 +00:00
int f(e)
enum E e;
{
return e;
2020-09-23 21:51:24 +00:00
}
2021-04-01 03:41:55 +00:00
extern int g(int);
int g(e)
enum E e;
{
return e;
}
2020-09-23 21:51:24 +00:00
int main(void)
{
2021-04-01 03:41:55 +00:00
return f(I) + g(I);
2020-09-23 21:51:24 +00:00
}