1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-11 16:07:04 +00:00
cc65/test/val/bug1690.c

24 lines
293 B
C
Raw Normal View History

/* OptCmp1 messed up with labels */
#include <stdio.h>
int main(void)
{
register unsigned int x = 0x200;
register unsigned int y = 0;
do
{
++y;
}
while (--x);
if (y != 0x200)
{
printf("0x%X\n", y);
return 1;
}
return 0;
}