From d1c37883756045fb92d58592181bf53481d7693d Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 15 Feb 2015 00:45:28 +0000 Subject: py: Fix loading of immediate pointer in Thumb assembler. Addresses issue #1117. --- tests/micropython/native_const.py | 13 +++++++++++++ tests/micropython/native_const.py.exp | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 tests/micropython/native_const.py create mode 100644 tests/micropython/native_const.py.exp (limited to 'tests/micropython') 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 -- cgit v1.2.3