blob: c2284a5b0e7b6f10056561abd01bdbf2f851c971 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* $NetBSD: msg_188.c,v 1.5 2023/03/28 14:44:35 rillig Exp $ */
# 3 "msg_188.c"
/* Test for message: no automatic aggregate initialization in traditional C [188] */
/* lint1-flags: -tw -X 351 */
struct point {
int x;
int y;
};
struct point global = {
3,
4,
};
void
function()
{
/* expect+1: warning: no automatic aggregate initialization in traditional C [188] */
struct point local = {
3,
4,
};
}
|