scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | 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 }