mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
tests: Add a test for invalid syntax in @micropython.asm.
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
This commit is contained in:
4
tests/inlineasm/thumb/asmerrors.py
Normal file
4
tests/inlineasm/thumb/asmerrors.py
Normal file
@@ -0,0 +1,4 @@
|
||||
try:
|
||||
exec("@micropython.asm_thumb\ndef l():\n a = di(a2, a2, -1)")
|
||||
except SyntaxError as e:
|
||||
print(e)
|
||||
1
tests/inlineasm/thumb/asmerrors.py.exp
Normal file
1
tests/inlineasm/thumb/asmerrors.py.exp
Normal file
@@ -0,0 +1 @@
|
||||
expecting an assembler instruction
|
||||
Reference in New Issue
Block a user