shithub: scc

ref: 3801b0918d1ba3107283cb6087a9a158c33d545b
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:
G3	I	F	"main
{
\
V6	K	#N2C
Y7	V6	"	(
	#"This is a string $ or # or ##and it is ok !
	#K00
)
A5	P	"p
	A5	Y7	'P	:P
	h	A5	#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;
}