mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 22:30:12 +00:00
added testcase for issue #1098
This commit is contained in:
parent
eb094ecf6a
commit
e22e9c403c
@ -93,6 +93,24 @@ $(WORKDIR)/bug1048.$1.$2.prg: bug1048.c | $(WORKDIR)
|
||||
$(if $(QUIET),echo misc/bug1048.$1.$2.prg)
|
||||
$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||
|
||||
# this should fail to compile, because there are errors in the code
|
||||
$(WORKDIR)/bug1098.$1.$2.prg: bug1098.c | $(WORKDIR)
|
||||
@echo "FIXME: " $$@ "compiles but should give an error."
|
||||
$(if $(QUIET),echo misc/bug1098.$1.$2.prg)
|
||||
$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||
|
||||
# this should fail to compile, because there are errors in the code
|
||||
$(WORKDIR)/bug1098a.$1.$2.prg: bug1098a.c | $(WORKDIR)
|
||||
@echo "FIXME: " $$@ "compiles but should give an error."
|
||||
$(if $(QUIET),echo misc/bug1098a.$1.$2.prg)
|
||||
$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||
|
||||
# this should fail to compile, because there are errors in the code
|
||||
$(WORKDIR)/bug1098b.$1.$2.prg: bug1098b.c | $(WORKDIR)
|
||||
@echo "FIXME: " $$@ "compiles but should give an error."
|
||||
$(if $(QUIET),echo misc/bug1098b.$1.$2.prg)
|
||||
$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||
|
||||
# should compile, but then hangs in an endless loop
|
||||
$(WORKDIR)/endless.$1.$2.prg: endless.c | $(WORKDIR)
|
||||
$(if $(QUIET),echo misc/endless.$1.$2.prg)
|
||||
|
13
test/misc/bug1098.c
Normal file
13
test/misc/bug1098.c
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
/* bug #1098 Empty enumerator-list */
|
||||
|
||||
/* The C Standard requires that something exists between the braces for
|
||||
* enum, struct, and union. */
|
||||
|
||||
enum {
|
||||
};
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
13
test/misc/bug1098a.c
Normal file
13
test/misc/bug1098a.c
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
/* bug #1098 Empty enumerator-list */
|
||||
|
||||
/* The C Standard requires that something exists between the braces for
|
||||
* enum, struct, and union. */
|
||||
|
||||
struct {
|
||||
};
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
13
test/misc/bug1098b.c
Normal file
13
test/misc/bug1098b.c
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
/* bug #1098 Empty enumerator-list */
|
||||
|
||||
/* The C Standard requires that something exists between the braces for
|
||||
* enum, struct, and union. */
|
||||
|
||||
union {
|
||||
};
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user