summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-02-15 00:45:28 +0000
committerDamien George <damien.p.george@gmail.com>2015-02-15 00:45:28 +0000
commitd1c37883756045fb92d58592181bf53481d7693d (patch)
tree73b794459b85e8765da632b8ae4ac67ac13b2f2c /tests
parent0868942e7722f73f53fe9c8b730fd3acc9f2d2e7 (diff)
py: Fix loading of immediate pointer in Thumb assembler.
Addresses issue #1117.
Diffstat (limited to 'tests')
-rw-r--r--tests/micropython/native_const.py13
-rw-r--r--tests/micropython/native_const.py.exp2
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/micropython/native_const.py b/tests/micropython/native_const.py
new file mode 100644
index 000000000..f2db82ca4
--- /dev/null
+++ b/tests/micropython/native_const.py
@@ -0,0 +1,13 @@
+# check loading constants
+
+@micropython.native
+def f():
+ return 123456789012345678901234567890
+
+print(f())
+
+@micropython.native
+def g():
+ return 1.2
+
+print(g())
diff --git a/tests/micropython/native_const.py.exp b/tests/micropython/native_const.py.exp
new file mode 100644
index 000000000..eea238e6f
--- /dev/null
+++ b/tests/micropython/native_const.py.exp
@@ -0,0 +1,2 @@
+123456789012345678901234567890
+1.2