1struct s {
2	int i;
3	long f[];
4};
5
6static int foo(struct s *s)
7{
8	return sizeof(*s);
9}
10
11/*
12 * check-name: flex-array-sizeof
13 * check-command: sparse -Wflexible-array-sizeof $file
14 *
15 * check-error-start
16flex-array-sizeof.c:8:16: warning: using sizeof on a flexible structure
17 * check-error-end
18 */
19