diff options
Diffstat (limited to 'tests/micropython')
| -rw-r--r-- | tests/micropython/native_misc.py | 10 | ||||
| -rw-r--r-- | tests/micropython/native_misc.py.exp | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/micropython/native_misc.py b/tests/micropython/native_misc.py index 7c5415375..f5ef807fe 100644 --- a/tests/micropython/native_misc.py +++ b/tests/micropython/native_misc.py @@ -38,3 +38,13 @@ def f(a): f(False) f(True) + + +# stack settling in branch +@micropython.native +def f(a): + print(1, 2, 3, 4 if a else 5) + + +f(False) +f(True) diff --git a/tests/micropython/native_misc.py.exp b/tests/micropython/native_misc.py.exp index b3e1389ef..8eec04228 100644 --- a/tests/micropython/native_misc.py.exp +++ b/tests/micropython/native_misc.py.exp @@ -4,3 +4,5 @@ 6 True False +1 2 3 5 +1 2 3 4 |
