2014-10-29 7:58 GMT+01:00 Dmitri Shubin <[email protected]>:

> Hi,
>
> On Wed, Oct 22, 2014 at 10:23 PM, Paul Pluzhnikov <[email protected]>
> wrote:
>
>> For the curious:
>>
>>   unsigned long u1 = ~0UL;
>>   unsigned long u2 = labs(u1);
>>
>>   assert(u1 != u2);  // labs on unsigned *may* have an effect, despite
>> what Clang says.
>>
>
> Am I right that this is 'implementation-defined' behaviour?
>

Yes. Both in C and C++ this is implementation-defined.

Roman.
_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to