From 229870485f16c4104a5b56e777faccc40206b1b5 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 18 Sep 2024 09:05:12 +0200 Subject: [PATCH] Add examples from gh-59324 --- Lib/test/test_ctypes/test_generated_structs.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Lib/test/test_ctypes/test_generated_structs.py b/Lib/test/test_ctypes/test_generated_structs.py index c7f100765166a3..4cd2e4a91ebb60 100644 --- a/Lib/test/test_ctypes/test_generated_structs.py +++ b/Lib/test/test_ctypes/test_generated_structs.py @@ -405,6 +405,16 @@ class Example_gh_86098_pack(Structure): ("b", c_uint8, 8), ("c", c_uint32, 16)] +@register() +class Example_gh_59324_17(Structure): + _fields_ = [("a", c_int32, 17), + ("b", c_int16, 1)] + +@register() +class Example_gh_59324_13(Structure): + _fields_ = [("a", c_int32, 13), + ("b", c_int16, 5)] + @register() class AnonBitfields(Structure): class X(Structure):