diff --git a/test/misc/Makefile b/test/misc/Makefile index f8832e77e..deacc9464 100644 --- a/test/misc/Makefile +++ b/test/misc/Makefile @@ -95,7 +95,7 @@ $(WORKDIR)/pptest2.$1.$2.prg: pptest2.c | $(WORKDIR) $(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR) # should compile, but gives an error -$(WORKDIR)/bug1263.$1.$2.prg: pptest2.c | $(WORKDIR) +$(WORKDIR)/bug1263.$1.$2.prg: bug1263.c | $(WORKDIR) @echo "FIXME: " $$@ "currently does not compile." $(if $(QUIET),echo misc/bug1263.$1.$2.prg) $(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR) diff --git a/test/misc/bug1263.c b/test/misc/bug1263.c index 457e64034..4e5987c58 100644 --- a/test/misc/bug1263.c +++ b/test/misc/bug1263.c @@ -1,17 +1,15 @@ +/* bug #1263 - erroneous error for K & R function declaration */ -/* bug #1263 - erroneous error for implicit function declaration */ - -#include - -enum E { I }; +enum E { I = 0 }; extern int f(enum E); + int f(e) enum E e; { - return 1; + return e; } int main(void) { - return f(1) ? EXIT_SUCCESS : EXIT_FAILURE; + return f(I); }