shithub: scc

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