diff --git a/test/misc/Makefile b/test/misc/Makefile index 735f83065..f8832e77e 100644 --- a/test/misc/Makefile +++ b/test/misc/Makefile @@ -94,6 +94,12 @@ $(WORKDIR)/pptest2.$1.$2.prg: pptest2.c | $(WORKDIR) $(if $(QUIET),echo misc/pptest2.$1.$2.prg) $(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 $(WORKDIR)/endless.$1.$2.prg: endless.c | $(WORKDIR) $(if $(QUIET),echo misc/endless.$1.$2.prg) diff --git a/test/misc/bug1263.c b/test/misc/bug1263.c new file mode 100644 index 000000000..457e64034 --- /dev/null +++ b/test/misc/bug1263.c @@ -0,0 +1,17 @@ + +/* bug #1263 - erroneous error for implicit function declaration */ + +#include + +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; +}