aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/external/c-testsuite/tests/single-exec/00049.c
blob: 432c7217690fd79311813ef1b52e2332da270fd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
int x = 10;

struct S {int a; int *p;};
struct S s = { .p = &x, .a = 1};

int
main()
{
	if(s.a != 1)
		return 1;
	if(*s.p != 10)
		return 2;
	return 0;
}