1 /* $NetBSD: msg_124.c,v 1.2 2021/01/03 15:44:35 rillig Exp $ */ 2 # 3 "msg_124.c" 3 4 // Test for message: illegal pointer combination, op %s [124] 5 6 typedef void(*signal_handler)(int); 7 8 typedef signal_handler(*sys_signal)(signal_handler); 9 10 typedef int(*printflike)(const char *, ...) 11 __attribute__((format(printf, 1, 2))); 12 13 void 14 example(int *ptr) 15 { 16 signal_handler handler = ptr; 17 sys_signal signal = ptr; 18 printflike printf = ptr; 19 } 20