mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
testcase related to bug #1888
This commit is contained in:
parent
44b2e4f331
commit
cc450706d1
@ -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."
|
||||
|
10
test/misc/int-static-1888.c
Normal file
10
test/misc/int-static-1888.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user