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