summaryrefslogtreecommitdiff
path: root/support/regression/qct/0018-structptr.c
blob: 58b6b5d8fc852791ceac7822d5159ffd73093e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


int
main()
{

	struct S { int x; int y; } s;
	struct S *p;

	p = &s;	
	s.x = 1;
	p->y = 2;
	return p->y + p->x - 3; 
}