1struct s;
2
3void foo(struct s s)
4{
5}
6
7struct s bar(void)
8{
9	struct s s;
10	return s;
11}
12
13/*
14 * check-name: incomplete struct
15 * check-command: sparse -Wno-decl $file
16 * check-known-to-fail
17 *
18 * check-error-start
19incomplete-struct.c:3:19: error: parameter 's' has incomplete type
20incomplete-struct.c:7:10: error: return type is incomplete
21incomplete-struct.c:9:11: error: 's' has incompelete type
22 * check-error-end
23 */
24