Skip to content

Handle char array initialization through { string literal }#175

Merged
nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
lucic71:string-init
Jun 3, 2026
Merged

Handle char array initialization through { string literal }#175
nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
lucic71:string-init

Conversation

@lucic71
Copy link
Copy Markdown
Contributor

@lucic71 lucic71 commented Jun 3, 2026

const char var[] = {"string literal"} is a valid initialization. Add support for it in codegen.

@lucic71 lucic71 changed the title Handle char array initialization through { string literal} Handle char array initialization through { string literal } Jun 3, 2026
@nunoplopes nunoplopes merged commit 0c299e5 into Cpp2Rust:master Jun 3, 2026
9 checks passed
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