summaryrefslogtreecommitdiff
path: root/c/test_c.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2012-08-22 22:20:49 +0300
committermattip <matti.picus@gmail.com>2012-08-22 22:20:49 +0300
commita7d6d37ac1caf3740d6e544bf8675ea832891a61 (patch)
treec50ce9a4029eff7b89aa6adff862d5bf6dc7bd5a /c/test_c.py
parent9b16704262e25c478989dc9732c17ae3cc1c2741 (diff)
parentba63b2188158712097b5b6f2bc76db47cd63d77d (diff)
downloadcffi-win32.tar.gz
merge default into branchwin32
Diffstat (limited to 'c/test_c.py')
-rw-r--r--c/test_c.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/c/test_c.py b/c/test_c.py
index bd080ad..2faedd5 100644
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -773,6 +773,11 @@ def test_function_void_result():
BFunc = new_function_type((BInt, BInt), BVoid, False)
assert repr(BFunc) == "<ctype 'void(*)(int, int)'>"
+def test_function_void_arg():
+ BVoid = new_void_type()
+ BInt = new_primitive_type("int")
+ py.test.raises(TypeError, new_function_type, (BVoid,), BInt, False)
+
def test_call_function_0():
BSignedChar = new_primitive_type("signed char")
BFunc0 = new_function_type((BSignedChar, BSignedChar), BSignedChar, False)