Fixed test/misc/bug1265.c with its output.
This commit is contained in:
@@ -101,13 +101,12 @@ $(WORKDIR)/bug1263.$1.$2.prg: bug1263.c | $(WORKDIR)
|
|||||||
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
$(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
|
||||||
|
|
||||||
# this one requires --std=c89, it fails with --std=c99
|
# this one requires --std=c89, it fails with --std=c99
|
||||||
# it fails currently at runtime
|
|
||||||
$(WORKDIR)/bug1265.$1.$2.prg: bug1265.c | $(WORKDIR)
|
$(WORKDIR)/bug1265.$1.$2.prg: bug1265.c | $(WORKDIR)
|
||||||
$(if $(QUIET),echo misc/bug1265.$1.$2.prg)
|
$(if $(QUIET),echo misc/bug1265.$1.$2.prg)
|
||||||
$(CC65) --standard c89 -t sim$2 -$1 -o $$(@:.prg=.s) $$< $(NULLERR)
|
$(CC65) --standard c89 -t sim$2 -$1 -o $$(@:.prg=.s) $$< $(NULLERR)
|
||||||
$(CA65) -t sim$2 -o $$(@:.prg=.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)
|
$(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
|
# should compile, but then hangs in an endless loop
|
||||||
$(WORKDIR)/endless.$1.$2.prg: endless.c | $(WORKDIR)
|
$(WORKDIR)/endless.$1.$2.prg: endless.c | $(WORKDIR)
|
||||||
|
|||||||
@@ -14,11 +14,9 @@ int main (void) {
|
|||||||
int x, n;
|
int x, n;
|
||||||
|
|
||||||
sprintf (str1, "%p\n", &x);
|
sprintf (str1, "%p\n", &x);
|
||||||
puts(str1);
|
|
||||||
x = 1234;
|
x = 1234;
|
||||||
n = f1 (x);
|
n = f1 (x);
|
||||||
sprintf (str2, "%p\n", &x);
|
sprintf (str2, "%p\n", &x);
|
||||||
puts(str2);
|
|
||||||
|
|
||||||
if (strcmp(str1, str2)) {
|
if (strcmp(str1, str2)) {
|
||||||
puts("not equal");
|
puts("not equal");
|
||||||
@@ -30,11 +28,9 @@ int main (void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sprintf (str1, "%p\n", &x);
|
sprintf (str1, "%p\n", &x);
|
||||||
puts(str1);
|
|
||||||
x = 2345;
|
x = 2345;
|
||||||
n = f2 (x);
|
n = f2 (x);
|
||||||
sprintf (str2, "%p\n", &x);
|
sprintf (str2, "%p\n", &x);
|
||||||
puts(str2);
|
|
||||||
|
|
||||||
if (strcmp(str1, str2)) {
|
if (strcmp(str1, str2)) {
|
||||||
puts("not equal");
|
puts("not equal");
|
||||||
|
|||||||
Reference in New Issue
Block a user