summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_313.c
blob: 581ea8c0310028d13a567b92a85cf89b35a16630 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$NetBSD: msg_313.c,v 1.5 2023/03/28 14:44:35 rillig Exp $	*/
# 3 "msg_313.c"

/* Test for message: struct or union member name in initializer is a C99 feature [313] */

/* lint1-flags: -sw -X 351 */

struct point {
	int x, y;
} p = {
	/* expect+1: warning: struct or union member name in initializer is a C99 feature [313] */
	.x = 3,
	/* expect+1: warning: struct or union member name in initializer is a C99 feature [313] */
	.y = 4,
};