ctest: check incompatible pointer types for public fields.#5205
Conversation
f491d92 to
f5532a9
Compare
|
Also, I'm not sure, but I think this was already tested in a way? Because while working on it I got the following result: For the specific test case at least, the correct warning would have popped up even if the extra test lines had not been added. I might not be understanding the requirements here though. Oh and if that is the case, the reason for it not detecting before may be that the field was not public, as non public fields can't be checked. I think, it's been a while since I looked at ctest :) |
f5532a9 to
4b6d4a9
Compare
|
Huh; I thought I saw a case related to #1020 where we had an integer as a field but a union is the correct type, and no skips. Now I can't find that, and you're right that it seems covered. Maybe I was looking at union fields - do you know if we test those? |
|
Yup, we do test those. The |
|
You're right, sorry for all the confusion here. It looks like tests don't cover this, would you mind adding them? Could just be |
Description
Attempts to fix #5196 by adding a test for improper field types into the C side of the field_type test.
Sources
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI