shithub: scc

ref: e6e455cf62362367eed000de2771ca275953ec93
dir: /cc1/tests/test002.c/

View raw version
/*
name: TEST002
description: Test forward references before definition of type definition
output:
S2	S
G4	P	x
F1
X6	F1	main
G6	F1	main	{
-
S2	S	(
M5	I
)
A2	S2	y
	A2	M5	.I	#I0	:I
	G4	@S2	A2	:S
}
*/

struct S *x;
struct S {
	int i;
};

void
main(void)
{
	struct S y;

	y.i = 0;
	*x = y;
}