shithub: scc

ref: db74516be9356bc40305d3ad683c95ec443a1866
dir: /cc1/tests/test040.c/

View raw version
/*
name: TEST040
description: Test for bug parsing typenames in struct definition
error:
output:
G9	I	F	"main
{
\
S2	"List	#N1C	#N2
M4	I	"len	#N0
M6	P	"head	#N2
M7	P	"back	#N6
A10	S2	"List
	h	A10	M4	.I
}
*/

typedef struct List List;
struct List {
	int len;
	struct List *head;
	List *back;
};

int
main(void)
{
	List List;

	return List.len;
}