shithub: scc

ref: 8d6c4f8946dfb91a79e70efc04db7d089d4abbf0
dir: /cc1/tests/test032.c/

View raw version

/*
name: TEST032
description: test special characters @ and $ in macro definitions
error:
output:
F4	I
G5	F4	main
{
\
V9	K	#44
Y8	V9
(
	#"This is a string $ or # or ##and it is ok !
	#K00
)
A7	P	p
	A7	Y8	'P	:P
	r	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;
}