shithub: scc

ref: a951173828d4c5fad5de2c54576cb01ad484dbae
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;
}