scc

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

0039-sizeof.c (216B)


      1 int
      2 main()
      3 {
      4 	int x, *p;
      5 
      6 	if (sizeof(0) < 2)
      7 		return 1;
      8 	if (sizeof 0 < 2)
      9 		return 1;
     10 	if (sizeof(char) < 1)
     11 		return 1;
     12 	if (sizeof(int) - 2 < 0)
     13 		return 1;
     14 	if (sizeof(&x) != sizeof p)
     15 		return 1;
     16 	return 0;
     17 }