aboutsummaryrefslogtreecommitdiff
path: root/test/struct-flexible-array.c
blob: 57bd95ab9ef157d5114161aafc54efc0d5e48d3b (plain)
1
2
3
4
5
6
7
8
9
10
struct s {
	int a;
	short b[];
};

int x = sizeof(struct s);

int f(struct s *s) {
	return s->b[2];
}