added test related to issue #1263
This commit is contained in:
17
test/misc/bug1263.c
Normal file
17
test/misc/bug1263.c
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
/* bug #1263 - erroneous error for implicit function declaration */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
enum E { I };
|
||||
extern int f(enum E);
|
||||
int f(e)
|
||||
enum E e;
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return f(1) ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
Reference in New Issue
Block a user