aboutsummaryrefslogtreecommitdiff
path: root/test/vla-nested.c
blob: 176392ec4e46b8bca8481e51ca315fde65a46438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
int l;
int f(int x) {
	l += x;
	return x;
}
int main(void) {
	int r = 0;
	int (*p[f(2)])[f(3)];
	r += l != 5;
	r += sizeof p != sizeof(int (*[2])[3]);
	r += sizeof **p != sizeof(int[3]);
	return r;
}