mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
X && 0 and X & 0 are constant 0; X || 1 is constant 1 (#1399)
Fixes #977
This commit is contained in:
3
test/asm/const-zero.err
Normal file
3
test/asm/const-zero.err
Normal file
@@ -0,0 +1,3 @@
|
||||
error: const-zero.asm(21) -> const-zero.asm::test_or(14):
|
||||
Expected constant expression: PC is not constant at assembly time
|
||||
error: Assembly aborted (1 error)!
|
||||
Reference in New Issue
Block a user