Re: [exim] Test code (Anyone using platform without 64-bitin…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Always Learning
Datum:  
To: Exim
Betreff: Re: [exim] Test code (Anyone using platform without 64-bitintegers?)
On Mon, 2013-12-02 at 18:00 -0500, Phil Pennock wrote:

> You should be able to compile and run this, and see "4294967297" printed
> twice, which is (2^32 + 1):
>
> ----------------------------8< cut here >8------------------------------
> #include <stdint.h>
> #include <stdio.h>
>
> int
> main(int argc, char *argv[]) {
>     int64_t s64;
>     uint64_t u64;

>
>     s64 = 1LL + (1LL << 32);
>     u64 = 1LL + (1LL << 32);

>
>     printf("signed: %lld\nunsigned: %llu\n", s64, u64);
> }
> ----------------------------8< cut here >8------------------------------


How does one do that? Saving the extract to a file, tt.c, for instance
then running 'gcc tt.c' produces nothing.

(Slightly embarrassed because I don't know)
but never-the-less

Always Learning

--
Paul.
England,
EU.

Our systems are exclusively Linux. No Micro$oft Windoze here.