shithub: scc

ref: 0bab8ee83c31cd1512c33b85a3825e1cd87c9b85
dir: /cc1/tests/test031.c/

View raw version
/* See LICENSE file for copyright and license details. */

/*
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;
}