added test related to issue #1263
This commit is contained in:
@@ -94,6 +94,12 @@ $(WORKDIR)/pptest2.$1.$2.prg: pptest2.c | $(WORKDIR)
|
|||||||
$(if $(QUIET),echo misc/pptest2.$1.$2.prg)
|
$(if $(QUIET),echo misc/pptest2.$1.$2.prg)
|
||||||
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||||
|
|
||||||
|
# should compile, but gives an error
|
||||||
|
$(WORKDIR)/bug1263.$1.$2.prg: pptest2.c | $(WORKDIR)
|
||||||
|
@echo "FIXME: " $$@ "currently does not compile."
|
||||||
|
$(if $(QUIET),echo misc/bug1263.$1.$2.prg)
|
||||||
|
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||||
|
|
||||||
# should compile, but then hangs in an endless loop
|
# should compile, but then hangs in an endless loop
|
||||||
$(WORKDIR)/endless.$1.$2.prg: endless.c | $(WORKDIR)
|
$(WORKDIR)/endless.$1.$2.prg: endless.c | $(WORKDIR)
|
||||||
$(if $(QUIET),echo misc/endless.$1.$2.prg)
|
$(if $(QUIET),echo misc/endless.$1.$2.prg)
|
||||||
|
|||||||
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