shithub: scc

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