mirror of
https://github.com/cc65/cc65.git
synced 2025-04-06 20:37:16 +00:00
add testcase related to issue #1252
This commit is contained in:
parent
90b9438b48
commit
41b29d5c81
@ -58,6 +58,14 @@ $(ISEQUAL): ../isequal.c | $(WORKDIR)
|
||||
|
||||
define PRG_template
|
||||
|
||||
# should compile, but gives an error
|
||||
$(WORKDIR)/bug1252.$1.$2.prg: bug1252.c | $(WORKDIR)
|
||||
@echo "FIXME: " $$@ "currently does not compile."
|
||||
$(if $(QUIET),echo misc/bug1252.$1.$2.prg)
|
||||
$(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||
$(NOT) $(CA65) -t sim$2 -o $$(@:.prg=.o) $$(@:.prg=.s) $(NULLERR)
|
||||
# $(NOT) $(LD65) -t sim$2 -o $$@ $$(@:.prg=.o) sim$2.lib $(NULLERR)
|
||||
|
||||
# should compile, but gives an error
|
||||
$(WORKDIR)/bug1768.$1.$2.prg: bug1768.c | $(WORKDIR)
|
||||
@echo "FIXME: " $$@ "currently does not compile."
|
||||
|
19
test/misc/bug1252.c
Normal file
19
test/misc/bug1252.c
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// this works
|
||||
c_label:
|
||||
asm("inx\n"
|
||||
"bne %g\n",
|
||||
c_label);
|
||||
|
||||
// this does not work
|
||||
c_label2:
|
||||
asm("inx\n"
|
||||
"bne %g \n",
|
||||
c_label2);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user