mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
add test related to bug #1853
This commit is contained in:
parent
fd6d00a4dd
commit
6fc2cd9f61
21
test/val/bug1853-inline-asm.c
Normal file
21
test/val/bug1853-inline-asm.c
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
/* #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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user