shithub: scc

ref: 840c98a16e5c6ce962d3a7d4c01c27a51dad2e23
dir: /tests/execute/0050-inits.c/

View raw version


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;
}