diff options
Diffstat (limited to 'tests/micropython/native_misc.py')
-rw-r--r-- | tests/micropython/native_misc.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/micropython/native_misc.py b/tests/micropython/native_misc.py new file mode 100644 index 000000000..8f087c494 --- /dev/null +++ b/tests/micropython/native_misc.py @@ -0,0 +1,10 @@ +@micropython.native +def native_test(x): + print(1, [], x) + +native_test(2) + +# check that GC doesn't collect the native function +import gc +gc.collect() +native_test(3) |