diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-08-04 22:16:24 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-08-04 22:16:24 +1000 |
| commit | 49529f22d46364efb712a07860b645984ec42075 (patch) | |
| tree | 322928721185249a051ba8132d609e02fcc39dba /tests/micropython/viper_cond.py | |
| parent | 10830059c5d3651abdb2d3532b28a9bb0a9425ee (diff) | |
tests/micropython/viper_cond: Add test for large int as bool.
Diffstat (limited to 'tests/micropython/viper_cond.py')
| -rw-r--r-- | tests/micropython/viper_cond.py | 8 |
1 files changed, 8 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() |
