diff --git a/tests/bugs.txt b/tests/bugs.txt index 49ba73ebdbf3cfab7b3a552dd2be83377b2ae9ff..f0269ae53dc3eb7896241ac37d672ec730a65505 100644 --- a/tests/bugs.txt +++ b/tests/bugs.txt @@ -7,3 +7,4 @@ numpy_ValueError_T172 unsignedbehaviour_T184 missing_baseclass_in_predecl_T262 tp_new_T454 +cfunc_call_tuple_args_T408 diff --git a/tests/run/cfunc_call_tuple_args_T408.pyx b/tests/run/cfunc_call_tuple_args_T408.pyx new file mode 100644 index 0000000000000000000000000000000000000000..eddf68ceaa26d6d40c8cdd6424ee4e0e2af06acf --- /dev/null +++ b/tests/run/cfunc_call_tuple_args_T408.pyx @@ -0,0 +1,17 @@ +__doc__ = """ +>>> call_with_tuple(1, 1.2, 'test', [1,2,3]) +(1, 1.2, 'test', [1, 2, 3]) + +>>> call_with_list(1, 1.2, None, None) +(1, 1.2, None, None) +""" + +cdef c_function(int a, float b, c, list d): + return a,b,c,d + +def call_with_tuple(*args): + return c_function(*args) + +def call_with_list(*args): + args = list(args) + return c_function(*args)