shithub: scc

ref: 5b9afbb363cb05947f13429fbc69e0497d32a887
dir: /cc1/tests/test031.c/

View raw version

/*
name: TEST031
description: Test concatenation in preprocessor
error:
TODO
output:
 
*/

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

int
main(void)
{
	int foo, bar, foobar;

	CAT(foo,bar) = foo + bar;
	XCAT(FOO,BAR) = foo + bar;
	return 0;
}