Home
       0038-ptradd.c - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       0038-ptradd.c (148B)
       ---
            1 int
            2 main()
            3 {
            4         int x[2];
            5         int *p;
            6         
            7         x[1] = 7;
            8         p = &x[0];
            9         p = p + 1;
           10         
           11         if(*p != 7)
           12                 return 1;
           13         if(&x[1] - &x[0] != 1)
           14                 return 1;
           15         
           16         return 0;
           17 }