scc

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

0220-comma.c (127B)


      1 int a;
      2 
      3 int
      4 f1()
      5 {
      6 	return a = 2;
      7 }
      8 
      9 int
     10 f2()
     11 {
     12 	return a += 1;
     13 }
     14 
     15 int
     16 main()
     17 {
     18 	if (f1(), f2() != 3)
     19 		return 1;
     20 	return 0;
     21 }