scc

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

0158-ternary.c (278B)


      1 int
      2 main(void)
      3 {
      4 	int i = 0, *q;
      5 	unsigned char *bp = 0;
      6 	void *p;
      7 
      8 	i = i ? 0 : 0l;
      9 	p = i ? (void *) 0 : 0;
     10 	p = i ? 0 : (void *) 0;
     11 	p = i ? 0 : (const void *) 0;
     12 	p = i ? (void *) 0 : bp-1;
     13 	q = i ? 0 : p;
     14 	q = i ? p : 0;
     15 	q = i ? q : 0;
     16 	q = i ? 0 : q;
     17 
     18 	return (int) q;
     19 }