blob: 0c2560525956df2ca3f74a5419cbcb3dbb036302 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* $NetBSD: msg_310.c,v 1.4 2023/07/07 19:45:22 rillig Exp $ */
# 3 "msg_310.c"
// Test for message: symbol renaming can't be used on function arguments [310]
/* lint1-extra-flags: -X 351 */
/* expect+2: warning: argument 'callback' unused in function 'function' [231] */
void
function(int (*callback)(void) __symbolrename(argument))
{
}
/* expect+1: error: syntax error ':' [249] */
TODO: "Add example code that triggers the above message."
TODO: "Add example code that almost triggers the above message."
|