diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-07 15:18:18 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-07 15:18:18 +0900 |
| commit | b8780671f6768e3b5a09084d9f80c01bd544d2e8 (patch) | |
| tree | 57a7e27baa0df450b98376db53ce46b3e1d594da /tests | |
| parent | a76908958f4fb404ec24bf86d3aa59f0ec5f6be0 (diff) | |
| download | ducc-b8780671f6768e3b5a09084d9f80c01bd544d2e8.tar.gz ducc-b8780671f6768e3b5a09084d9f80c01bd544d2e8.tar.zst ducc-b8780671f6768e3b5a09084d9f80c01bd544d2e8.zip | |
feat: support anonymous struct members
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/structs.sh | 25 |
1 files changed, 25 insertions, 0 deletions
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 |
