1 /* $NetBSD: msg_311.c,v 1.4 2023/07/07 19:45:22 rillig Exp $ */ 2 # 3 "msg_311.c" 3 4 // Test for message: symbol renaming can't be used on automatic variables [311] 5 6 /* lint1-extra-flags: -X 351 */ 7 8 typedef int (*callback)(void); 9 10 callback example(void)11example(void) 12 { 13 int (*func)(void) __symbolrename(function); 14 15 func = (void *)0; 16 return func; 17 } 18 19 /* expect+1: error: syntax error ':' [249] */ 20 TODO: "Add example code that triggers the above message." 21 TODO: "Add example code that almost triggers the above message." 22