xref: /illumos-gate/usr/src/tools/smatch/src/validation/typedef-redef-c89.c (revision b531f6d16eb39863e7bbc34773fb7ef7a282a0a2)
1 typedef int int_t;
2 typedef int int_t;
3 
4 /*
5  * check-name: typedef-redef-c89
6  * check-command: sparse -std=c89 --pedantic $file
7  * check-known-to-fail
8  *
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
13  */
14