shithub: scc

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