shithub: scc

ref: 4957aa7a96d1a90272f7efd1344800d476ab9aac
dir: /cc1/tests/test034.c/

View raw version

/*
name: TEST034
description: Basic test for incomplete structures
output:
X3	S2	x
F4	I	E
X5	F4	foo
G6	F4	main
{
\
X7	S2	x
	r	X7	'P	#P0	!I
}
G5	F4	foo
{
\
	X3	M9	.I	#I0	:I
	r	X3	M9	.I
}
*/

extern struct X x;
int foo();

int main()
{
	extern struct X x;
	return &x != 0;
}

struct X {int v;};

int foo()
{
	x.v = 0;
	return x.v;
}