shithub: scc

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