summaryrefslogtreecommitdiff
path: root/testing/cffi0/test_verify.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-05-20 09:26:57 +0200
committerArmin Rigo <arigo@tunes.org>2015-05-20 09:26:57 +0200
commit7699111616280618880948e12e541360b21a7ff2 (patch)
treecd6041e88b77d911040750fe2c4fcf3724f92a2e /testing/cffi0/test_verify.py
parent83cbef3cbb1fc99082802872f4c0efa093f5e5d9 (diff)
downloadcffi-7699111616280618880948e12e541360b21a7ff2.tar.gz
Test and fix (reported by sarvi)
Diffstat (limited to 'testing/cffi0/test_verify.py')
-rw-r--r--testing/cffi0/test_verify.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py
index 94e96e0..3e67e67 100644
--- a/testing/cffi0/test_verify.py
+++ b/testing/cffi0/test_verify.py
@@ -764,6 +764,11 @@ def test_nonfull_enum_syntax2():
assert ffi.string(ffi.cast('enum ee2', -1239)) == 'EE4'
assert ffi.string(ffi.cast('enum ee2', -1238)) == 'EE5'
+def test_nonfull_enum_bug3():
+ ffi = FFI()
+ ffi.cdef("enum ee2 { EE4=..., EE5=... };")
+ ffi.cdef("enum ee6 { EE7=10, EE8=..., EE9=... };")
+
def test_get_set_errno():
ffi = FFI()
ffi.cdef("int foo(int);")