hooks: add a warning to detect unimplemented hooks
[smatch.git] / validation / incomplete-struct.c
blobf9429f33a2c67465798ee05449a828380c782402
1 struct s;
3 void foo(struct s s)
7 struct s bar(void)
9 struct s s;
10 return s;
14 * check-name: incomplete struct
15 * check-command: sparse -Wno-decl $file
16 * check-known-to-fail
18 * check-error-start
19 incomplete-struct.c:3:19: error: parameter 's' has incomplete type
20 incomplete-struct.c:7:10: error: return type is incomplete
21 incomplete-struct.c:9:11: error: 's' has incompelete type
22 * check-error-end