shithub: scc

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