Skip to content

Commit 2298704

Browse files
committed
Add examples from pythongh-59324
1 parent 88f39ac commit 2298704

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎Lib/test/test_ctypes/test_generated_structs.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,16 @@ class Example_gh_86098_pack(Structure):
405405
("b", c_uint8, 8),
406406
("c", c_uint32, 16)]
407407

408+
@register()
409+
class Example_gh_59324_17(Structure):
410+
_fields_ = [("a", c_int32, 17),
411+
("b", c_int16, 1)]
412+
413+
@register()
414+
class Example_gh_59324_13(Structure):
415+
_fields_ = [("a", c_int32, 13),
416+
("b", c_int16, 5)]
417+
408418
@register()
409419
class AnonBitfields(Structure):
410420
class X(Structure):

0 commit comments

Comments
 (0)