scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | 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 }