[Python-Dev] Small test

Brett C. bac at OCF.Berkeley.EDU
Thu Feb 12 15:32:06 EST 2004


Gustavo Niemeyer wrote:

> Hello folks,
> 
> can you please test the following piece of code with your compilers
> and check if they're issuing any warnings? Thanks!
> 
>   #include <stdio.h>
>   int main(int argc, char *argv[])
>   {
>       char c = 1;
>       if (!(c & ~255)) printf("Thanks!\n");
>       return 0;
>   }
> 

On OS X 10.3.2 (Panther) which uses "gcc version 3.3 20030304 (Apple 
Computer, Inc. build 1495)" I compile with no warnings and it spits out 
"Thanks!".

-Brett



More information about the Python-Dev mailing list