summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/usr.bin/xlint/lint1/d_compound_literals1.c
blob: cd1987ae17de65d8750f2dff162c749d7666a53c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* compound literals */

struct p {
	short a, b, c, d;
};

foo()
{
	struct p me = (struct p) {1, 2, 3, 4};
	me.a = me.b;
}
OpenPOWER on IntegriCloud