summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/micropython/viper_cond.py8
-rw-r--r--tests/micropython/viper_cond.py.exp1
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/micropython/viper_cond.py b/tests/micropython/viper_cond.py
index a168afce9..bbb3f6923 100644
--- a/tests/micropython/viper_cond.py
+++ b/tests/micropython/viper_cond.py
@@ -23,3 +23,11 @@ def g():
if y:
print("y", y)
g()
+
+# using an int as a conditional that has the lower 16-bits clear
+@micropython.viper
+def h():
+ z = 0x10000
+ if z:
+ print("z", z)
+h()
diff --git a/tests/micropython/viper_cond.py.exp b/tests/micropython/viper_cond.py.exp
index dff710393..beacd48fe 100644
--- a/tests/micropython/viper_cond.py.exp
+++ b/tests/micropython/viper_cond.py.exp
@@ -1,3 +1,4 @@
not x False
x True
y 1
+z 65536