Overlooked a few target tests that take the address of main().

This commit is contained in:
Kugel Fuhr
2024-09-02 16:55:58 +02:00
parent cd4357057f
commit 79606c4d20
3 changed files with 9 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ static char hex[16] = { "0123456789abcdef" };
static char charbuf[0x20];
static char colbuf[0x20];
void func(void) { }
void main(void)
{
int stackvar = 42;
@@ -65,7 +67,7 @@ void main(void)
p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]
);
}
memcpy(p, main, i = 0); /* test that a zero length doesn't copy 64K */
memcpy(p, func, i = 0); /* test that a zero length doesn't copy 64K */
gotoxy(0,ysize - 1);
for (i = 0; i < xsize; ++i) {