From af09faae95318c68dcdb13e71126776f0082274d Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Wed, 23 Oct 2024 13:39:52 +0300 Subject: [PATCH] Nested anonymous record --- hs-bindgen/examples/nested_types.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hs-bindgen/examples/nested_types.h b/hs-bindgen/examples/nested_types.h index a88652d9..ef501dad 100644 --- a/hs-bindgen/examples/nested_types.h +++ b/hs-bindgen/examples/nested_types.h @@ -7,3 +7,20 @@ struct bar { struct foo foo1; struct foo foo2; }; + +struct ex3 { + struct { + int ex3_a; + char ex3_b; + }; + float ex3_c; +}; + +struct ex4 { + struct ex4_b { + int ex3_a; + char ex3_b; + struct ex4_b *recur; + }; + float ex3_c; +};