shithub: scc

ref: 3f059be3ad0c219bbc1a8378b45c03717b28d49f
dir: /cc1/tests/test032.c/

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

/*
name: TEST032
description: test special characters @ and $ in macro definitions
error:
output:
G5	I	F	"main
{
\
V9	K	#N44
Y8	V9	"	(
	#"This is a string $ or # or ##and it is ok !
	#K00
)
A7	P	"p
	A7	Y8	'P	:P
	h	A7	#P0	!I
}
*/

#define M1(x) "This is a string $ or # or ##" ## #x

int
main(void)
{
	char *p = M1(and it is ok!);

	return p != 0;
}