summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_054.c
blob: 913226231720ad657618c9e00bb691ed4150ad3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*	$NetBSD: msg_054.c,v 1.4 2022/04/16 09:22:25 rillig Exp $	*/
# 3 "msg_054.c"

/* Test for message: trailing ',' prohibited in enum declaration [54] */

/* lint1-flags: -sw */

enum color {
	RED,
	GREEN,
	BLUE,
};
/* expect-1: error: trailing ',' prohibited in enum declaration [54] */