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

cppmangle: Add more tests, fix double 'N' #10053

Merged
merged 1 commit into from
Jun 18, 2019

Conversation

Geod24
Copy link
Member

@Geod24 Geod24 commented Jun 18, 2019

Fixes #10021 (comment)
Also copied all the extern(C++, Namespace) tests as extern(C++, "Namespace") since it seems #10031 is not getting in any time soon.

Fix a regression spotted by SSoulaimane.
Also add the scoped Namespace tests as non-scoped tests.
@Geod24 Geod24 requested a review from ibuclaw as a code owner June 18, 2019 00:26
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @Geod24!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + dmd#10053"

@dlang-bot dlang-bot merged commit 81fc360 into dlang:master Jun 18, 2019
@Geod24 Geod24 deleted the another-regression-cppmangle branch June 18, 2019 01:58
@Geod24
Copy link
Member Author

Geod24 commented Jun 18, 2019

@MartinNowak : As mentioned on Slack (https://dlang.slack.com/archives/C4DN1H6LA/p1560818579001800) this and the previous PR needs to go in otherwise extern(C++, "namespace") will have some regressions.

{
auto sl = this.buf.peekSlice();
assert(sl.length == 0 || haveNE || s.namespace is null || sl != "_ZN");
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Arg that was debug code

Copy link
Member Author

Choose a reason for hiding this comment

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

It won't cause any bug but I think this assert should be more structured

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants