aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/external/c-testsuite/tests/single-exec/00045.c
blob: d6a8d9951a8353ed4e8a324ea49872405ecd7073 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int x = 5;
long y = 6;
int *p = &x;

int
main()
{
	if (x != 5) 
		return 1;
	if (y != 6)
		return 2;
	if (*p != 5)
		return 3;
	return 0;
}