shithub: scc

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