blob: c2eafce70f4061e8351aa72139c18db7f7b6700a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* $NetBSD: msg_152.c,v 1.5 2023/03/28 14:44:34 rillig Exp $ */
# 3 "msg_152.c"
// Test for message: argument cannot have unknown size, arg #%d [152]
/* lint1-extra-flags: -X 351 */
/* expect+1: warning: struct 'incomplete' never defined [233] */
struct incomplete;
/* expect+1: error: '<unnamed>' has incomplete type 'incomplete struct incomplete' [31] */
void callee(struct incomplete);
void
caller(void)
{
/* expect+1: error: 'local_var' has incomplete type 'incomplete struct incomplete' [31] */
struct incomplete local_var;
/* expect+1: error: argument cannot have unknown size, arg #1 [152] */
callee(local_var);
}
|