From c11e389a9400a32a4cf4a0672e23fe5fcfd8c426 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Fri, 20 Nov 2020 17:25:10 +0100 Subject: [PATCH] move testcase for issue #1320 into test/misc --- test/misc/Makefile | 6 ++++++ test/{err => misc}/bug1320.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) rename test/{err => misc}/bug1320.c (93%) diff --git a/test/misc/Makefile b/test/misc/Makefile index 853e9d1e0..3fab957cb 100644 --- a/test/misc/Makefile +++ b/test/misc/Makefile @@ -100,6 +100,12 @@ $(WORKDIR)/bug1263.$1.$2.prg: bug1263.c | $(WORKDIR) $(if $(QUIET),echo misc/bug1263.$1.$2.prg) $(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR) +# should compile, but gives an error (segfault) +$(WORKDIR)/bug1320.$1.$2.prg: bug1320.c | $(WORKDIR) + @echo "FIXME: " $$@ "currently does not compile." + $(if $(QUIET),echo misc/bug1320.$1.$2.prg) + $(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR) + # this one requires --std=c89, it fails with --std=c99 # it fails currently at runtime $(WORKDIR)/bug1265.$1.$2.prg: bug1265.c | $(WORKDIR) diff --git a/test/err/bug1320.c b/test/misc/bug1320.c similarity index 93% rename from test/err/bug1320.c rename to test/misc/bug1320.c index 15482434c..3599d60de 100644 --- a/test/err/bug1320.c +++ b/test/misc/bug1320.c @@ -24,7 +24,7 @@ https://github.com/cc65/cc65/issues/1320 - After the bug is fixed, this file should be moved to "test/misc/". + After the bug is fixed, this file should be moved to "test/val/". */ static char *var; @@ -35,4 +35,5 @@ char bar (void); void main (void) { foo (var++, bar ()); + return 0; }