summaryrefslogtreecommitdiff
path: root/tests/micropython/viper_args.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/viper_args.py')
-rw-r--r--tests/micropython/viper_args.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/micropython/viper_args.py b/tests/micropython/viper_args.py
index ca2a5e670..2aebe1b04 100644
--- a/tests/micropython/viper_args.py
+++ b/tests/micropython/viper_args.py
@@ -26,3 +26,11 @@ def f4(x1:int, x2:int, x3:int, x4:int):
f4(1, 2, 3, 4)
# only up to 4 arguments currently supported
+
+# test compiling *x, **x, * args (currently unsupported at runtime)
+@micropython.viper
+def f(*x, **y):
+ pass
+@micropython.viper
+def f(*):
+ pass