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

// Test for message: GCC style struct or union member name in initializer [315]

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

struct point {
	int x, y;
} p = {
	/* expect+1: warning: GCC style struct or union member name in initializer [315] */
	x: 3,
	/* expect+1: warning: GCC style struct or union member name in initializer [315] */
	y: 4,
};