scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

0135-unary.c (197B)


      1 int
      2 main()
      3 {
      4         int x;
      5 
      6         x = 3;
      7         x = !x; //  0
      8         x = !x; //  1
      9         x = ~x; // -1
     10         x = -x; //  2
     11         if(x != 2)
     12                 return 1;
     13         return 0;
     14 }