From 390f9720149f13ebfbb5947a8fa2e5d700bcee62 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Mon, 13 Jul 2020 15:16:26 +0200 Subject: [PATCH] updated Makefile with exception rules for the added tests --- test/misc/Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/test/misc/Makefile b/test/misc/Makefile index cda0c789a..898ea1b2b 100644 --- a/test/misc/Makefile +++ b/test/misc/Makefile @@ -63,6 +63,36 @@ $(DIFF): ../bdiff.c | $(WORKDIR) define PRG_template +# should compile, but gives an error +$(WORKDIR)/bug975.$1.$2.prg: bug975.c | $(WORKDIR) + $(if $(QUIET),echo misc/bug975.$1.$2.prg) + -$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR) + +# should compile, but gives an error +$(WORKDIR)/bug250.$1.$2.prg: bug250.c | $(WORKDIR) + $(if $(QUIET),echo misc/bug250.$1.$2.prg) + -$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR) + +# should compile, but gives an error +$(WORKDIR)/bug760.$1.$2.prg: bug760.c | $(WORKDIR) + $(if $(QUIET),echo misc/bug760.$1.$2.prg) + -$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR) + +# this should fail to compile, because cc65 does not support returning structs +$(WORKDIR)/bug264.$1.$2.prg: bug264.c | $(WORKDIR) + $(if $(QUIET),echo misc/bug264.$1.$2.prg) + -$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR) + +# this should fail to compile, because there are errors in the code +$(WORKDIR)/bug1048.$1.$2.prg: bug1048.c | $(WORKDIR) + $(if $(QUIET),echo misc/bug1048.$1.$2.prg) + -$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR) + +# internal compiler error +$(WORKDIR)/bug1075.$1.$2.prg: bug1075.c | $(WORKDIR) + $(if $(QUIET),echo misc/bug1075.$1.$2.prg) + -$(CL65) -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)