tests: Add a test for invalid syntax in @micropython.asm.

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
This commit is contained in:
Jeff Epler
2025-09-10 07:45:50 -05:00
parent 9728538c3a
commit 7630ef0240
2 changed files with 5 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
try:
exec("@micropython.asm_thumb\ndef l():\n a = di(a2, a2, -1)")
except SyntaxError as e:
print(e)

View File

@@ -0,0 +1 @@
expecting an assembler instruction