param_key: fix container of when no struct member is referenced
[smatch.git] / validation / flex-array-array.c
blob921a0698bb2851a5b388bbd4e76e77279d72497e
1 struct s {
2 int i;
3 long f[];
4 };
6 static struct s a[2];
8 /*
9 * check-name: flex-array-array
10 * check-command: sparse -Wflexible-array-array $file
12 * check-error-start
13 flex-array-array.c:6:18: warning: array of flexible structures
14 * check-error-end