2014-09-24 14:45:10 +00:00
|
|
|
/*
|
2022-04-17 14:07:52 +00:00
|
|
|
!!DESCRIPTION!!
|
2014-09-24 14:45:10 +00:00
|
|
|
!!ORIGIN!! testsuite
|
|
|
|
!!LICENCE!! Public Domain
|
|
|
|
!!AUTHOR!!
|
|
|
|
*/
|
|
|
|
|
2014-11-22 17:28:05 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2014-09-24 14:45:10 +00:00
|
|
|
/*
|
|
|
|
cc65 doesn't compile this, if i use the "-O"-option.
|
|
|
|
but it works with "while(!0)"; instead of "for(;;);"
|
|
|
|
|
|
|
|
i'm using cl65 V2.12.9 win
|
|
|
|
|
|
|
|
----
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
static uint8_t x = 0;
|
|
|
|
static uint8_t y = 0;
|
|
|
|
|
|
|
|
for (x = 0; x < 16; ++x)
|
|
|
|
{
|
|
|
|
y = y + 1;
|
|
|
|
}
|
|
|
|
for(;;);
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
int test(void)
|
|
|
|
{
|
|
|
|
static uint8_t x = 0;
|
|
|
|
static uint8_t y = 0;
|
|
|
|
|
|
|
|
for (x = 0; x < 16; ++x)
|
|
|
|
{
|
|
|
|
y = y + 1;
|
|
|
|
}
|
|
|
|
for(;;);
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
printf("it works :)\n");
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|