Add more test coverage (runtime lowerings) for betterC#8308
Add more test coverage (runtime lowerings) for betterC#8308dlang-bot merged 1 commit intodlang:masterfrom JinShil:betterc_tests
Conversation
|
Thanks for your pull request, @JinShil! Bugzilla referencesYour 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 locallyIf 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#8308" |
|
We can’t do this in druntime? Didn’t you already create a betterC test in druntime? |
|
This is not actually testing the druntime implementation. What this test does is ensure DMD lowers the expression to the runtime implementation and calls it properly. Well, actually, this does test the runtime implementation too, but that is by accident. IMO this is the correct spot for this test as -betterC is a compiler flag, and we want to make sure -betterC code is making the right calls to the runtime implementations. That being said, we do need runtime implementation tests as well, but those should be in the druntime repository in the form of I hope that make sense. |
This adds test coverage to betterC to ensure dlang/druntime#2194 doesn't break code. It will probably need to be expanded, but this is what I have for now.