1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +00:00

testcase related to bug #1888

This commit is contained in:
mrdudz 2022-11-03 18:03:47 +01:00
parent 44b2e4f331
commit cc450706d1
2 changed files with 16 additions and 0 deletions

View File

@ -58,6 +58,12 @@ $(ISEQUAL): ../isequal.c | $(WORKDIR)
define PRG_template
# should compile, but gives an error
$(WORKDIR)/int-static-1888.$1.$2.prg: int-static-1888.c | $(WORKDIR)
@echo "FIXME: " $$@ "currently does not compile."
$(if $(QUIET),echo misc/int-static-1888.$1.$2.prg)
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
# should compile, but gives an error
$(WORKDIR)/bug1768.$1.$2.prg: bug1768.c | $(WORKDIR)
@echo "FIXME: " $$@ "currently does not compile."

View File

@ -0,0 +1,10 @@
/* bug #1888 - The compiler doesn't accept valid data declarations */
/* The following is a valid declaration but not accepted by the compiler */
int static a;
int main(void)
{
return 0;
}