summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pcc/ccom/init001.c
blob: 70bb3826f8f7d448862998f5ae7c731f0c96fe1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Based on OpenBSD PR 5586 from TAKAHASHI Tamotsu */

struct s {
	int f;
	int g[1][1];
};

struct s v = { 0x99, {{0x100}} };

int
main()
{
	if (v.f != 0x99)
		errx(1, "wrong");
	return 0;
}