shithub: scc

ref: 56278d4ed0aeb9e8896082e9aefdded9e9228a02
dir: /tests/cc/execute/0152-cat.c/

View raw version
#define CAT(x,y) x ## y
#define XCAT(x,y) CAT(x,y)
#define FOO foo
#define BAR bar

int foobar;

int
main(void)
{
	int foo = 1, bar = 0;

	CAT(foo,bar) += foo + bar;
	if (foobar != 1)
		return 1;
	XCAT(FOO,BAR) += foo + bar;
	if (foobar != 2)
		return 2;

	return 0;
}