From b8780671f6768e3b5a09084d9f80c01bd544d2e8 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 7 Feb 2026 15:18:18 +0900 Subject: feat: support anonymous struct members --- tests/structs.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/structs.sh') diff --git a/tests/structs.sh b/tests/structs.sh index 4c8ff6d..3df4f9c 100644 --- a/tests/structs.sh +++ b/tests/structs.sh @@ -362,3 +362,28 @@ int main() { printf("%zu\n", sizeof(E)); } EOF + +cat <<'EOF' > expected +EOF + +test_diff <<'EOF' +int printf(); + +struct S1 { + struct { + int x; + int y; + }; + struct { + int z; + }; +}; + +int main() { + // TODO + // struct S1 a = {1, 2, 3}; + // printf("%d\n", a.x); + // printf("%d\n", a.y); + // printf("%d\n", a.z); +} +EOF -- cgit v1.3-1-g0d28