hooks: add a warning to detect unimplemented hooks
[smatch.git] / validation / typedef-redef-c89.c
blob6d4dc28c134a435200bade4bb6b78e596be67ea4
1 typedef int int_t;
2 typedef int int_t;
4 /*
5 * check-name: typedef-redef-c89
6 * check-command: sparse -std=c89 --pedantic $file
7 * check-known-to-fail
9 * check-error-start
10 typedef-redef-c89.c:2:13: warning: redefinition of typedef 'int_t'
11 typedef-redef-c89.c:1:13: info: originally defined here
12 * check-error-end