Super User's BSD Cross Reference: /NetBSD/tests/usr.bin/xlint/lint1/msg_188.c

1 /* $NetBSD: msg_188.c,v 1.8 2025年04月12日 15:57:26 rillig Exp $ */
2# 3 "msg_188.c"
3
4 /* Test for message: automatic aggregate initialization requires C90 or later [188] */
5
6 /* lint1-flags: -tw -X 351 */
7
8 struct point {
9 int x;
10 int y;
11};
12
13 struct point global = {
14 3,
15 4,
16};
17
18 void
19 function()
20{
21 /* expect+2: warning: automatic aggregate initialization requires C90 or later [188] */
22 /* expect+1: warning: 'local' set but not used in function 'function' [191] */
23 struct point local = {
24 3,
25 4,
26 };
27}
28 

AltStyle によって変換されたページ (->オリジナル) /