Skip to content

C++: Add test showing that the IR translation for typeid is broken#20058

Merged
MathiasVP merged 1 commit intogithub:mainfrom
jketema:typeid-test
Jul 15, 2025
Merged

C++: Add test showing that the IR translation for typeid is broken#20058
MathiasVP merged 1 commit intogithub:mainfrom
jketema:typeid-test

Conversation

@jketema
Copy link
Copy Markdown
Contributor

@jketema jketema commented Jul 15, 2025

No description provided.

Copilot AI review requested due to automatic review settings July 15, 2025 15:30
@jketema jketema requested a review from a team as a code owner July 15, 2025 15:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds a test case to demonstrate that the IR (Intermediate Representation) translation for C++ typeid expressions is broken. The test reveals issues in the code generation where typeid operations result in malformed IR instructions.

Key changes:

  • Adds a test file with typeid expressions to expose IR translation bugs
  • Creates a mock typeinfo header to support the test
  • Updates expected test outputs to reflect the newly discovered IR inconsistencies

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

File Description
type_info_test.cpp Test case with typeid expressions that expose IR translation issues
typeinfo Mock header file providing std::type_info class definition
*.expected Updated expected outputs showing IR consistency failures for typeid operations

@github-actions github-actions Bot added the C++ label Jul 15, 2025
@MathiasVP MathiasVP merged commit 327c4b3 into github:main Jul 15, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants