shithub: scc

ref: 8604fd05150d98be7c9503ec9a97b63f05371ff7
dir: /tests/cc/execute/0181-stringize.c/

View raw version
#define XSTR(x) #x
#define STR(x)  XSTR(x)
#define S       y = "str"

int
main()
{
	char *s, *t = STR(S);

	for (s = "y = \"str\""; *s && *t; ++s, ++t) {
		if (*s != *t)
			return 1;
	}

	return 0;
}