xref: /illumos-gate/usr/src/tools/smatch/src/validation/restricted-typeof.c (revision 4c87aefe8930bd07275b8dd2e96ea5f24d93a52e)
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