1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00
cc65/test/val/bug1853-inline-asm.c

22 lines
314 B
C
Raw Normal View History

2022-09-17 12:42:18 +00:00
/* #1853 - Regression on inline assembly expression evaluation */
int main(void)
{
/*
compiles with e.g. Git 2f4e2a3 to the expected
lda 1
lda 1 + 1
rts
However, with the current HEAD, it compiles to
lda 1
lda
*/
__asm__("lda 1");
__asm__("lda 1 + 1");
return 0;
}