On 2018-03-10 3:39 AM, Raphael Hertzog wrote:
Given your work on the compiler, does it really make sense to try to fix
something in cpputest?

The only clean fix I can think of is to modify the tests to use a real
function pointer instead of 0xdeadbeef. I don't think that an architecture
specific work-around or fix is desirable here.
0xdeadbeef isn't a valid function pointer on hppa.  I would say using a real function pointer is correct:

Pointers to objects or functions of the same type (after pointer conversions) can be compared for equality. Two pointers of the same type compare equal if and only if they are both null, both point to the same function,
or both represent the same address (3.9.2).

On systems that use function descriptors, it can be tricky to determine where a function pointer points due
to lazy binding, etc.


John David Anglin  dave.ang...@bell.net

Reply via email to