mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +00:00
added testcase related to issue #1768
This commit is contained in:
@@ -58,6 +58,12 @@ $(ISEQUAL): ../isequal.c | $(WORKDIR)
|
|||||||
|
|
||||||
define PRG_template
|
define PRG_template
|
||||||
|
|
||||||
|
# should compile, but gives an error
|
||||||
|
$(WORKDIR)/bug1768.$1.$2.prg: bug1768.c | $(WORKDIR)
|
||||||
|
@echo "FIXME: " $$@ "currently does not compile."
|
||||||
|
$(if $(QUIET),echo misc/bug1768.$1.$2.prg)
|
||||||
|
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||||
|
|
||||||
# should compile, but gives an error
|
# should compile, but gives an error
|
||||||
$(WORKDIR)/bug760.$1.$2.prg: bug760.c | $(WORKDIR)
|
$(WORKDIR)/bug760.$1.$2.prg: bug760.c | $(WORKDIR)
|
||||||
@echo "FIXME: " $$@ "currently does not compile."
|
@echo "FIXME: " $$@ "currently does not compile."
|
||||||
|
14
test/misc/bug1768.c
Normal file
14
test/misc/bug1768.c
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int a = 1 || (8 / 0);
|
||||||
|
int b = 0 && (8 % 0);
|
||||||
|
int c = 1 ? 42 : (0 % 0);
|
||||||
|
int d = 1 || a / 0;
|
||||||
|
int e = 0 && b % 0;
|
||||||
|
int f = 1 ? 42 : (a %= 0, b /= 0);
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
Reference in New Issue
Block a user