msg_311.c revision 1.4
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 8typedef int (*callback)(void); 9 10callback 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] */ 20TODO: "Add example code that triggers the above message." 21TODO: "Add example code that almost triggers the above message." 22