-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Add c++ ABI tests #4952
Add c++ ABI tests #4952
Conversation
|
So |
|
Your comparison includes the padding bytes, which are not guaranteed to be set to any particular value. (At least not by C/C++.) |
|
@klickverbot I see, so for |
|
|
|
|
|
|
|
@gchatelet: I'm pretty sure |
Except that there are different variants of NaN, so two NaNs may not be the same via |
|
Checking float equality with We really do want to be checking that the floats match bit for bit. |
|
So as @jmdavis pointed out two Options are:
I went for 1. right now. What do you think ? |
|
BTW the Windows tests are failing, I suspect a name mangling issue. |
|
Phobos should not be used in the dmd test suite. |
|
Please take another look. There is now no more dependencies on phobos. |
|
Looks good. Please squash the commits together. |
335fb94 to
ed84fe6
Compare
|
Done. Thx for the review. |
|
Auto-merge toggled on |
|
The funny pointer type formatting is not my cup of tea, but LGTM. |
|
thx @klickverbot . What do you mean by funny pointer ? Having the star next to the type instead of next to the variable ? I don't mind providing a fix if you want. |
|
It's not worth the effort, and Walter has been doing this from time to time too, but I'm really not a fan of having the start anywhere but next to the type in D. |
Yes, that's correct C++ style but incorrect D style, since the association is different. |
|
This seems to have triggered a spurious failure in the "stage 3" GDC DDMD tests on Travis: https://travis-ci.org/D-Programming-Language/dmd/builds/80190427 ?! |
|
Hmm why do you think this is linked to this PR, it looks like it's linked to druntime, not dmd tests. |
|
It seems improbable that the failure would be related to this. I've invalidated the test run; let's see whether it comes up again. |
@yebblies Here is a first simple version of C++ abi tests.
It fails for real numbers on Linux.