shithub: scc

ref: 43a3b37a514e390199668bab42c3451901de5917
dir: /cc1/tests/test026.c/

View raw version

/*
name: TEST026
descritpion: Test of predefined cpp macros
error:

output:
F2	I
G3	F2	main
{
\
A4	I	y
A6	P	p
	A6	"746573743032362E63	'P	:P
	A4	#I21	:I
	A4	#I1	:I
	A4	#I1	:I
	A4	#I1	:I
	A4	#I1	:I
}

*/

#define x(y)  (y)

int
main(void)
{
	int y;
	char *p;

	p = __FILE__;
	y = __LINE__;
/*	p = __DATE__;   __DATE__ generates  different value each time */
	y = __STDC__;
/*	p = __TIME__;   __TIME__ generates  different value each time */
	y = __STDC_HOSTED__;
	y = __SCC__;
	y = x(1);
}