mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 12:32:07 +00:00
Add more test coverage for RGBASM (#1256)
This also fixes two bugs: `-1 >>> 32` was -1 not 0, and `macro_FreeArgs` should have been called but wasn't.
This commit is contained in:
17
test/asm/invalid-numbers.asm
Normal file
17
test/asm/invalid-numbers.asm
Normal file
@@ -0,0 +1,17 @@
|
||||
; no digits
|
||||
def x = $
|
||||
def x = `
|
||||
|
||||
; too large
|
||||
def x = 9_876_543_210
|
||||
def x = $f_0000_0000
|
||||
def x = &400_0000_0000
|
||||
def x = %1_00000000_00000000_00000000_00000000
|
||||
def x = 65537.0q16
|
||||
|
||||
; no precision suffix
|
||||
def x = 3.14q
|
||||
|
||||
; invalid precision suffix
|
||||
def x = 3.14q40
|
||||
|
||||
Reference in New Issue
Block a user