shithub: scc

ref: 022532e3e74a94ff9a194378c5a9f7a4904d82d3
dir: /cc1/tests/test049.c/

View raw version
/* See LICENSE file for copyright and license details. */

/*
name: TEST049
description: Basic test for initializer
error:
output:
G1	I	"x	(
	#I5
)
G3	P	"p	(
	G1	'P
)
G5	I	F	"main
{
\
	y	L6	G3	@I	#I5	=I
	h	#I1
L6
	h	#I0
}
*/

int x = 5;
int *p = &x;

int
main()
{
	if(*p != 5)
		return 1;
	return 0;
}