Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clang-cpp-frontend] fix the cpp new initialisation #1636

Merged
merged 4 commits into from
Feb 1, 2024

Conversation

XLiZHI
Copy link
Collaborator

@XLiZHI XLiZHI commented Feb 1, 2024

The current C++ frontend does not initialise some types correctly.

#include <cassert>

int main() 
{
    int* p = new int(10);

    assert(*p == 10);

    return 0;
}

image

Copy link
Contributor

@lucasccordeiro lucasccordeiro left a comment

Choose a reason for hiding this comment

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

LGTM.

@lucasccordeiro lucasccordeiro merged commit 381aa01 into esbmc:master Feb 1, 2024
9 checks passed
@lucasccordeiro
Copy link
Contributor

@XLiZHI: Thanks for submitting this PR.

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.

3 participants