shithub: scc

ref: dd645ca9e70c446ad5e785a882ff43ac0c1868d0
dir: /tests/0078-dirifexpr.c/

View raw version

#if (-2) != -2
#error fail
#endif

#if (0 || 0) != 0
#error fail
#endif

#if (1 || 0) != 1
#error fail
#endif

#if (1 || 1) != 1
#error fail
#endif

#if (0 && 0) != 0
#error fail
#endif

#if (1 && 0) != 0
#error fail
#endif

#if (0 && 1) != 0
#error fail
#endif

#if (1 && 1) != 1
#error fail
#endif

#if (0xf0 | 1) != 0xf1
#error fail
#endif

#if (0xf0 & 1) != 0
#error fail
#endif

#if (0xf0 & 0x1f) != 0x10
#error fail
#endif

#if (1 ^ 1) != 0
#error fail
#endif

#if (1 == 1) != 1
#error fail
#endif

#if (1 == 0) != 0
#error fail
#endif

#if (1 != 1) != 0
#error fail
#endif

#if (0 != 1) != 1
#error fail
#endif

#if (0 > 1) != 0
#error fail
#endif

#if (0 < 1) != 1
#error fail
#endif

#if (0 > -1) != 1
#error fail
#endif

#if (0 < -1) != 0
#error fail
#endif

#if (0 >= 1) != 0
#error fail
#endif

#if (0 <= 1) != 1
#error fail
#endif

#if (0 >= -1) != 1
#error fail
#endif

#if (0 <= -1) != 0
#error fail
#endif

#if (0 < 0) != 0
#error fail
#endif

#if (0 <= 0) != 1
#error fail
#endif

#if (0 > 0) != 0
#error fail
#endif

#if (0 >= 0) != 1
#error fail
#endif

#if (1 << 1) != 2
#error fail
#endif

#if (2 >> 1) != 1
#error fail
#endif

#if (2 + 1) != 3
#error fail
#endif

#if (2 - 3) != -1
#error fail
#endif

#if (2 * 3) != 6
#error fail
#endif

#if (6 / 3) != 2
#error fail
#endif

#if (7 % 3) != 1
#error fail
#endif

#if (2+2*3+2) != 10
#error fail
#endif

#if ((2+2)*(3+2)) != 20
#error fail
#endif

#if (2 + 2 + 2 + 2 == 2 + 2 * 3) != 1
#error fail
#endif

#if (1,2,3) != 3
#error fail
#endif

#if (0 ? 1 : 3) != 3
#error fail
#endif

#if (1 ? 3 : 1) != 3
#error fail
#endif

int
main()
{
	return 0;
}