• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define __bitwise __attribute__((bitwise))
2 
3 typedef unsigned int __bitwise t;
4 
5 unsigned int fun(void);
6 
7 static t (*ptr)(void) = fun;
8 
9 /*
10  * check-name: bitwise-function-pointer
11  *
12  * check-error-start
13 bitwise-function-pointer.c:7:25: warning: incorrect type in initializer (different base types)
14 bitwise-function-pointer.c:7:25:    expected restricted t ( *static [toplevel] ptr )( ... )
15 bitwise-function-pointer.c:7:25:    got unsigned int ( * )( ... )
16  * check-error-end
17  */
18