shithub: scc

ref: b79fb78e5800e18978ed22288e8ad3bf6702cf0d
dir: /cc1/tests/test032.c/

View raw version

/*
name: TEST032
description: test special characters @ and $ in macro definitions
error:

output:
F3	I
G4	F3	main
{
\
A6	P	p
	A6	"54686973206973206120737472696E672024206F722023206F72202323616E64206974206973206F6B202100	:P
	r	A6	#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;
}