]> git.sur5r.net Git - cc65/blobdiff - test/misc/Makefile
Add a testcase for https://github.com/cc65/cc65/pull/757
[cc65] / test / misc / Makefile
index 39a9a38686326deada73c800a3754e6c55d905a2..ad39176bdbd21ddc873a8adbe09f87308bbf9080 100644 (file)
@@ -35,7 +35,7 @@ SIM65 := $(if $(wildcard ../../bin/sim65*),..$S..$Sbin$Ssim65,sim65)
 
 WORKDIR = ..$S..$Stestwrk$Smisc
 
-OPTIONS = g O Os Osi Osir Oi Oir Or
+OPTIONS = g O Os Osi Osir Osr Oi Oir Or
 
 DIFF = $(WORKDIR)$Sbdiff$(EXE)
 
@@ -72,6 +72,11 @@ $(WORKDIR)/limits.$1.$2.prg: limits.c $(DIFF)
        $(SIM65) $(SIM65FLAGS) $$@ > $(WORKDIR)/limits.$1.out
        $(DIFF) $(WORKDIR)/limits.$1.out limits.ref
 
+$(WORKDIR)/goto.$1.$2.prg: goto.c $(DIFF)
+       $(if $(QUIET),echo misc/goto.$1.$2.prg)
+       $(CL65) -t sim$2 -$1 -o $$@ $$< 2>$(WORKDIR)/goto.$1.out
+       $(DIFF) $(WORKDIR)/goto.$1.out goto.ref
+
 # the rest are tests that fail currently for one reason or another
 $(WORKDIR)/fields.$1.$2.prg: fields.c | $(WORKDIR)
        @echo "FIXME: " $$@ "currently will fail."