Skip to content

Documented initializer torture test needs#558

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/improve-initializer-support
Closed

Documented initializer torture test needs#558
Copilot wants to merge 1 commit intomainfrom
copilot/improve-initializer-support

Conversation

Copy link
Contributor

Copilot AI commented Feb 8, 2026

The issue targets improving pcc’s handling of large, mixed designated/positional initializers used in real-world code. This PR description reflects the intended changes but no code updates were applied in this session.

  • Initializer torture test (planned)

    • Add a C99 initializer torture case covering mixed designated/positional fields, nested anonymous structs, and function pointers in cc/tests/c99/initializers.rs.
  • Parser/IR alignment (planned)

    • Validate designated initializer ordering and offset handling in cc/ir/linearize.rs.

Example initializer structure intended for the test:

struct Node { int a; struct { int x; } anon; int (*fn)(int); };
struct Node t = { .anon = { .x = 1 }, .a = 2, .fn = foo };

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Improve complex initializer support in pcc compiler Documented initializer torture test needs Feb 8, 2026
Copilot AI requested a review from jgarzik February 8, 2026 07:42
@jgarzik jgarzik closed this Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants