shithub: scc

ref: 2f307820bc3dab666974d065749aef367982f420
dir: /tests/cc/execute/0204-cast.c/

View raw version
int
main(void)
{
	static char *p = "\xe2\x80\x9c";
	unsigned n = 0;

	for (; *p; p++) {
		n <<= 1;
		if ((unsigned char)*p >= ' ' && (unsigned char)*p != 0x7f)
			n |= 1;
	}

	if (n != 7)
		return 1;

	return 0;
}