1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

Fixed test/misc/bug1265.c with its output.

This commit is contained in:
acqn 2021-01-24 18:19:54 +08:00 committed by Oliver Schmidt
parent bfc7a51a44
commit 95830cce29
2 changed files with 1 additions and 6 deletions

View File

@ -101,13 +101,12 @@ $(WORKDIR)/bug1263.$1.$2.prg: bug1263.c | $(WORKDIR)
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
# this one requires --std=c89, it fails with --std=c99
# it fails currently at runtime
$(WORKDIR)/bug1265.$1.$2.prg: bug1265.c | $(WORKDIR)
$(if $(QUIET),echo misc/bug1265.$1.$2.prg)
$(CC65) --standard c89 -t sim$2 -$1 -o $$(@:.prg=.s) $$< $(NULLERR)
$(CA65) -t sim$2 -o $$(@:.prg=.o) $$(@:.prg=.s) $(NULLERR)
$(LD65) -t sim$2 -o $$@ $$(@:.prg=.o) sim$2.lib $(NULLERR)
$(NOT) $(SIM65) $(SIM65FLAGS) $$@ $(NULLOUT) $(NULLERR)
$(SIM65) $(SIM65FLAGS) $$@ $(NULLOUT) $(NULLERR)
# should compile, but then hangs in an endless loop
$(WORKDIR)/endless.$1.$2.prg: endless.c | $(WORKDIR)

View File

@ -14,11 +14,9 @@ int main (void) {
int x, n;
sprintf (str1, "%p\n", &x);
puts(str1);
x = 1234;
n = f1 (x);
sprintf (str2, "%p\n", &x);
puts(str2);
if (strcmp(str1, str2)) {
puts("not equal");
@ -30,11 +28,9 @@ int main (void) {
}
sprintf (str1, "%p\n", &x);
puts(str1);
x = 2345;
n = f2 (x);
sprintf (str2, "%p\n", &x);
puts(str2);
if (strcmp(str1, str2)) {
puts("not equal");