Skip to content

Add tests for basic.def.odr - #620

Merged
nunoplopes merged 11 commits into
Cpp2Rust:masterfrom
lucic71:basic.def.odr
Nov 15, 2026
Merged

nunoplopes merged 11 commits into
Cpp2Rust:masterfrom
lucic71:basic.def.odr

Conversation

@lucic71

@lucic71 lucic71 commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Part of #619

There are some cpp2rust bugs that I found while writing the tests:

  • p3.5-pointer-to-member.cpp - we don't support pointer to member yet
  • p4.1-pure-virtual-qualified-call.cpp - unsupported inheritance
  • p4.1-pure-virtual-member-pointer.cpp - pointer to member
  • p6-evaluated-binding-is-captured.cpp - structured binding not captured
  • p14.5.1-inline-function-reads-per-file-constant - converter generates one global, two globals must be generated
  • p15-function-template - static local is never initialised

I added tests only for behavioural differences between C++ and Rust. I ignored things that have to do with: ill formed programs, diagnostic required, clasue that only defines terms, etc.

I also caught a limitation in Clang in p5.3-discarded-value-in-lambda.cpp, Clang captures a variable that it should not.

@nunoplopes
nunoplopes merged commit 9d3e6a8 into Cpp2Rust:master Nov 15, 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