1 /* $NetBSD: msg_310.c,v 1.6 2023/08/02 18:51:25 rillig Exp $ */ 2 # 3 "msg_310.c" 3 4 // Test for message: symbol renaming can't be used on function parameters [310] 5 6 /* lint1-extra-flags: -X 351 */ 7 8 /* expect+2: warning: parameter 'callback' unused in function 'function' [231] */ 9 void 10 function(int (*callback)(void) __symbolrename(parameter)) 11 { 12 } 13 14 /* expect+1: error: syntax error ':' [249] */ 15 TODO: "Add example code that triggers the above message." 16 TODO: "Add example code that almost triggers the above message." 17