0107-bnot.c - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
       0107-bnot.c (190B)
       ---
            1 #include <stdint.h>
            2 
            3 int
            4 main()
            5 {
            6         int32_t x;
            7         int64_t l;
            8         
            9         x = 0;
           10         l = 0;
           11         
           12         x = ~x;
           13         if (x != 0xffffffff)
           14                 return 1;
           15         
           16         l = ~l;
           17         if (x != 0xffffffffffffffff)
           18                 return 2;
           19 
           20         
           21         return 0;
           22 }