shithub: scc

ref: 7e16db5266a4c029474fe364b70b4bd77190ab43
dir: /cc1/tests/test038.c/

View raw version

/*
name: TEST038
description: Basic test for tentative definitions
output:
G1	I	x
	G1	#I0	:I
F2	I	E
X3	F2	main
F4	P	E
G5	F4	foo
{
\
	r	X3	'P
}
G3	F2	main
{
\
	G1	#I0	:I
	r	G1
}
*/

int x;
int x = 0;
int x;

int main();

void *
foo()
{
	return &main;
}

int
main()
{
	x = 0;
	return x;
}