xref: /illumos-gate/usr/src/tools/smatch/src/validation/restricted-typeof.c (revision 856f710c9dc323b39da5935194d7928ffb99b67f)
1 typedef unsigned __attribute__((bitwise)) A;
2 static A x;
3 static __typeof__(x) y;
4 static A *p = &y;
5 /*
6  * check-name: typeof with bitwise types
7  * check-command: sparse -Wbitwise $file
8  */
9