1 /* { dg-require-effective-target indirect_calls } */ 2 3 void fn_show_state(void); 4 typedef void (*fn_handler_fn)(void); 5 static fn_handler_fn fn_handler[1]; 6 k_spec(unsigned char value)7void k_spec(unsigned char value) 8 { 9 void *func = fn_handler[value]; 10 if (func == fn_show_state ) 11 return; 12 fn_handler[value](); 13 } 14