shithub: scc

ref: 8182a159c71c03a6cd28b9c8651c26db5e1743c4
dir: /cc1/tests/test002.c/

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

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

void
main(void)
{
	struct S y;

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