1 #define __pure __attribute__((pure)) 2 3 funi(int val)4static __pure int funi(int val) 5 { 6 return val; 7 } 8 funp(int * ptr)9static __pure int *funp(int *ptr) 10 { 11 return ptr; 12 } 13 foo(int val,int * ptr)14static void foo(int val, int *ptr) 15 { 16 int nbr = funi(val); 17 int *res = funp(ptr); 18 } 19 20 /* 21 * check-name: function-attribute 22 */ 23