scc

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

0005-ifstmt.c (170B)


      1 int
      2 main()
      3 {
      4 	int x;
      5 	int *p;
      6 	int **pp;
      7 
      8 	x = 0;
      9 	p = &x;
     10 	pp = &p;
     11 
     12 	if(*p)
     13 		return 1;
     14 	if(**pp)
     15 		return 1;
     16 	else
     17 		**pp = 1;
     18 
     19 	if(x)
     20 		return 0;
     21 	else
     22 		return 1;
     23 }