summaryrefslogtreecommitdiff
path: root/tests/inlineasm/asmsum.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-08-05 16:32:10 +1000
committerDamien George <damien.p.george@gmail.com>2019-08-06 15:58:23 +1000
commitcd35dd9d9a29836906acdce60c931f6352b536d0 (patch)
tree7fe4f06cceb784bafb26794c847babd34e90d162 /tests/inlineasm/asmsum.py
parent2d3d4f74830eddaba8e13ca9a860a5cb7fb2f163 (diff)
py: Allow to pass in read-only buffers to viper and inline-asm funcs.
Fixes #4936.
Diffstat (limited to 'tests/inlineasm/asmsum.py')
-rw-r--r--tests/inlineasm/asmsum.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/inlineasm/asmsum.py b/tests/inlineasm/asmsum.py
index 07e71c738..9cbd8418e 100644
--- a/tests/inlineasm/asmsum.py
+++ b/tests/inlineasm/asmsum.py
@@ -55,3 +55,7 @@ print(b, n)
b = array.array('b', (10, 20, 30, 40, 50, 60, 70, 80))
n = asm_sum_bytes(len(b), b)
print(b, n)
+
+b = b'\x01\x02\x03\x04'
+n = asm_sum_bytes(len(b), b)
+print(b, n)